Changeset 7079 for trunk/src/user32/menu.cpp
- Timestamp:
- Oct 16, 2001, 4:49:46 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/menu.cpp
r6773 r7079 1 /* $Id: menu.cpp,v 1.3 7 2001-09-20 12:57:15 sandervl Exp $*/1 /* $Id: menu.cpp,v 1.38 2001-10-16 14:49:45 sandervl Exp $*/ 2 2 /* 3 3 * Menu functions … … 198 198 static BOOL isTimerSet = FALSE; 199 199 200 #ifdef __WIN32OS2__ 201 static BOOL fDisableOdinSysMenuItems = FALSE; 202 #endif 203 200 204 /*********************************************************************** 201 205 * debug_print_menuitem … … 364 368 menu->wFlags |= MF_SYSMENU | MF_POPUP; 365 369 SetMenuDefaultItem(hMenu, SC_CLOSE, FALSE); 370 #ifdef __WIN32OS2__ 371 if(fDisableOdinSysMenuItems) { 372 RemoveMenu(hMenu, 9, MF_BYPOSITION); 373 RemoveMenu(hMenu, 9, MF_BYPOSITION); 374 RemoveMenu(hMenu, 9, MF_BYPOSITION); 375 RemoveMenu(hMenu, 9, MF_BYPOSITION); 376 RemoveMenu(hMenu, 9, MF_BYPOSITION); 377 } 378 #ifndef DEBUG 379 else { 380 RemoveMenu(hMenu, SC_PUTMARK, MF_BYCOMMAND); 381 RemoveMenu(hMenu, SC_DEBUGINT3, MF_BYCOMMAND); 382 RemoveMenu(hMenu, 11, MF_BYPOSITION); //separator 383 } 384 #endif 385 #endif 366 386 } 367 387 else { … … 4882 4902 //****************************************************************************** 4883 4903 //****************************************************************************** 4884 4904 #ifdef __WIN32OS2__ 4905 void DisableOdinSysMenuItems() 4906 { 4907 fDisableOdinSysMenuItems = TRUE; 4908 } 4909 //****************************************************************************** 4910 //****************************************************************************** 4911 #endif
Note:
See TracChangeset
for help on using the changeset viewer.