Ignore:
Timestamp:
Dec 12, 2002, 2:55:45 PM (23 years ago)
Author:
sandervl
Message:

Changed all system menu resources; manually append Odin menu items when building the system menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/menu.cpp

    r9466 r9491  
    1 /* $Id: menu.cpp,v 1.52 2002-12-05 09:25:05 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.53 2002-12-12 13:55:41 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    355355        SetMenuDefaultItem(hMenu, SC_CLOSE, FALSE);
    356356#ifdef __WIN32OS2__
    357         if(fDisableOdinSysMenuItems) {
    358             RemoveMenu(hMenu, 9, MF_BYPOSITION);
    359             RemoveMenu(hMenu, 9, MF_BYPOSITION);
    360             RemoveMenu(hMenu, 9, MF_BYPOSITION);
    361             RemoveMenu(hMenu, 9, MF_BYPOSITION);
    362             RemoveMenu(hMenu, 9, MF_BYPOSITION);
    363         }
    364 #ifndef DEBUG
    365         else {
    366             RemoveMenu(hMenu, SC_PUTMARK, MF_BYCOMMAND);
    367             RemoveMenu(hMenu, SC_DEBUGINT3, MF_BYCOMMAND);
    368             RemoveMenu(hMenu, 11, MF_BYPOSITION);       //separator
    369         }
     357        if(!fDisableOdinSysMenuItems) {
     358            AppendMenuA(hMenu, MF_SEPARATOR, 0, NULL);
     359            AppendMenuA(hMenu,MF_STRING,
     360                       SC_ABOUTODIN, (LPSTR)"About Odin");
     361#ifdef DEBUG
     362            AppendMenuA(hMenu, MF_SEPARATOR, 0, NULL);
     363            AppendMenuA(hMenu,MF_STRING,
     364                       SC_PUTMARK, (LPSTR)"Put mark in debug log");
     365            AppendMenuA(hMenu,MF_STRING,
     366                       SC_DEBUGINT3, (LPSTR)"Breakpoint");
    370367#endif
     368        }
    371369#endif
    372370    }
Note: See TracChangeset for help on using the changeset viewer.