Changeset 7079 for trunk/src


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

custom build updates

Location:
trunk/src/user32
Files:
2 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
  • trunk/src/user32/oslibres.cpp

    r7063 r7079  
    1 /* $Id: oslibres.cpp,v 1.25 2001-10-15 17:09:03 sandervl Exp $ */
     1/* $Id: oslibres.cpp,v 1.26 2001-10-16 14:49:46 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    308308    if(lHits == GPI_ERROR) goto fail;
    309309
    310 //DEBUG_CURSOR
     310//#define DEBUG_CURSOR
    311311#ifdef DEBUG_CURSOR
    312312 {
     
    457457        }
    458458        if(hbmColor) {
    459              dprintf2(("OSLibWinCreatePointer: using real color cursor/icon"));
    460         }
    461         else dprintf2(("OSLibWinCreatePointer: converted color cursor/icon to mono"));
     459             dprintf2(("OSLibWinCreatePointer: using real color cursor/icon (fCursor %d)", fCursor));
     460        }
     461        else dprintf2(("OSLibWinCreatePointer: converted color cursor/icon to mono (fCursor %d)", fCursor));
    462462    }
    463463
     
    504504    }
    505505
    506     pointerInfo.fPointer   = fCursor; //FALSE = icon
     506    pointerInfo.fPointer   = !fCursor; //TRUE = icon
    507507    pointerInfo.xHotspot   = pInfo->ptHotSpot.x;
    508508    pointerInfo.yHotspot   = mapY(pInfo->nHeight, pInfo->ptHotSpot.y);
Note: See TracChangeset for help on using the changeset viewer.