Ignore:
Timestamp:
Nov 30, 2001, 2:53:50 PM (24 years ago)
Author:
sandervl
Message:

change menu hilite background color in OS/2 look mode

File:
1 edited

Legend:

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

    r7446 r7500  
    1 /* $Id: menu.cpp,v 1.41 2001-11-24 13:55:13 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.42 2001-11-30 13:53:49 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    3636#include "win32wmisc.h"
    3737#include "oslibmsg.h"
     38#include "oslibwin.h"
     39#include "syscolor.h"
    3840
    3941#define DBG_LOCALLOG    DBG_menu
     
    11501152
    11511153    if ((lpitem->fState & MF_HILITE) && !(IS_BITMAP_ITEM(lpitem->fType)))
     1154#ifdef __WIN32OS2__
     1155            if(fOS2Look)
     1156                 FillRect( hdc, &rect, GetOS2ColorBrush(PMSYSCLR_MENUHILITEBGND) );
     1157            else FillRect( hdc, &rect, GetSysColorBrush(COLOR_HIGHLIGHT) );
     1158#else
    11521159            FillRect( hdc, &rect, GetSysColorBrush(COLOR_HIGHLIGHT) );
     1160#endif
    11531161    else {
    11541162        //SvL: TODO: Bug in GDI32; draws black rectangle instead of menu color
Note: See TracChangeset for help on using the changeset viewer.