Ignore:
Timestamp:
Jan 4, 2003, 1:21:44 PM (23 years ago)
Author:
sandervl
Message:

fix for alt key & menu activation; fixed color of highlighted menubar item

File:
1 edited

Legend:

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

    r9605 r9607  
    12341234        if (lpitem->fState & MF_HILITE)
    12351235        {
     1236#ifdef __WIN32OS2__
     1237            if(!fOS2Look)
     1238#else
    12361239            if(TWEAK_WineLook == WIN98_LOOK)
     1240#endif
    12371241            {
    12381242                if(menuBar)
    12391243                    DrawEdge(hdc, &rect, BDR_SUNKENOUTER, BF_RECT);
    12401244                else
    1241 #if 0 //def __WIN32OS2__
    1242                     if(!fOS2Look)
    1243                          FillRect( hdc, &rect, GetOS2ColorBrush(PMSYSCLR_MENUHILITEBGND) );
    1244                     else FillRect( hdc, &rect, GetSysColorBrush(COLOR_HIGHLIGHT) );
    1245 #else
    12461245                    FillRect(hdc, &rect, GetSysColorBrush(COLOR_HIGHLIGHT));
    1247 #endif
    12481246            }
    12491247            else /* Not Win98 Look */
     
    13041302    if (lpitem->fState & MF_HILITE)
    13051303    {
     1304#ifdef __WIN32OS2__
     1305        if(!fOS2Look)
     1306#else
    13061307        if(TWEAK_WineLook == WIN98_LOOK)
     1308#endif
    13071309        {
    13081310            if(menuBar) {
     
    13141316                else
    13151317                    SetTextColor(hdc, GetSysColor(COLOR_HIGHLIGHTTEXT));
    1316 #if 0 //def __WIN32OS2__
    1317                 if(!fOS2Look)
    1318                      SetBkColor(hdc, GetOS2Color(PMSYSCLR_MENUHILITEBGND));
    1319                 else SetBkColor(hdc, GetSysColor(COLOR_HIGHLIGHT));
    1320 #else
    13211318                SetBkColor(hdc, GetSysColor(COLOR_HIGHLIGHT));
    1322 #endif
    13231319            }
    13241320        }
Note: See TracChangeset for help on using the changeset viewer.