Ignore:
Timestamp:
Oct 16, 2001, 4:49:46 PM (24 years ago)
Author:
sandervl
Message:

custom build updates

File:
1 edited

Legend:

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

    r6773 r7079  
    1 /* $Id: menu.cpp,v 1.37 2001-09-20 12:57:15 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.38 2001-10-16 14:49:45 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    198198static BOOL isTimerSet               = FALSE;
    199199
     200#ifdef __WIN32OS2__
     201static BOOL fDisableOdinSysMenuItems = FALSE;
     202#endif
     203
    200204/***********************************************************************
    201205 *           debug_print_menuitem
     
    364368        menu->wFlags |= MF_SYSMENU | MF_POPUP;
    365369        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
    366386    }
    367387    else {
     
    48824902//******************************************************************************
    48834903//******************************************************************************
    4884 
     4904#ifdef __WIN32OS2__
     4905void DisableOdinSysMenuItems()
     4906{
     4907    fDisableOdinSysMenuItems = TRUE;
     4908}
     4909//******************************************************************************
     4910//******************************************************************************
     4911#endif
Note: See TracChangeset for help on using the changeset viewer.