Ignore:
Timestamp:
Jan 11, 2000, 6:34:44 PM (26 years ago)
Author:
cbratschi
Message:

fixed dialog rect

File:
1 edited

Legend:

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

    r2406 r2410  
    1 /* $Id: menu.cpp,v 1.6 2000-01-11 13:06:24 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.7 2000-01-11 17:34:42 cbratschi Exp $*/
    22/*
    33 * Menu functions
     
    2020 * This is probably not the meaning this style has in MS-Windows.
    2121 */
    22 
    23 /*
    24  CB: not yet implemented:
    25  - Win32BaseWindow handling
    26  - message functions
    27 */
    2822
    2923#include <assert.h>
     
    10851079            FillRect( hdc, &rect, GetSysColorBrush(COLOR_HIGHLIGHT) );
    10861080    else {
    1087         //SvL: TODO: Bug in GDI32; draws black rectangle instead of menu color
     1081        //SvL: TODO: Bug in GDI32; draws black rectangle instead of menu color
    10881082        ///          for everything except the 1st menu item
    1089         RECT dummy = rect;
    1090         dummy.bottom = dummy.top+1;
    1091         dummy.right  = dummy.right+1;
    1092         FillRect( hdc, &dummy, GetSysColorBrush(COLOR_HIGHLIGHT) );
    1093         FillRect( hdc, &rect, GetSysColorBrush(COLOR_MENU) );
     1083        RECT dummy = rect;
     1084        dummy.bottom = dummy.top+1;
     1085        dummy.right  = dummy.right+1;
     1086        FillRect( hdc, &dummy, GetSysColorBrush(COLOR_HIGHLIGHT) );
     1087        FillRect( hdc, &rect, GetSysColorBrush(COLOR_MENU) );
    10941088    }
    10951089
     
    17891783    /* Find where to insert new item */
    17901784
    1791     if ((pos==(UINT)-1) || ((flags & MF_BYPOSITION) && (pos == menu->nItems))) 
     1785    if ((pos==(UINT)-1) || ((flags & MF_BYPOSITION) && (pos == menu->nItems)))
    17921786    {
    17931787        /* Special case: append to menu */
     
    21232117   {
    21242118        Win32BaseWindow *win32wnd = Win32BaseWindow::GetWindowFromHandle(menu->hWnd);
    2125         if(win32wnd==NULL)
    2126                 DebugInt3();
     2119        if(win32wnd==NULL)
     2120                DebugInt3();
    21272121
    21282122        ht = win32wnd->HandleNCHitTest(pt);
Note: See TracChangeset for help on using the changeset viewer.