Changeset 2406 for trunk/src/user32/new/menu.cpp
- Timestamp:
- Jan 11, 2000, 2:06:27 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/menu.cpp
r2396 r2406 1 /* $Id: menu.cpp,v 1. 5 2000-01-10 17:18:08 cbratschiExp $*/1 /* $Id: menu.cpp,v 1.6 2000-01-11 13:06:24 sandervl Exp $*/ 2 2 /* 3 3 * Menu functions … … 1084 1084 else 1085 1085 FillRect( hdc, &rect, GetSysColorBrush(COLOR_HIGHLIGHT) ); 1086 else 1087 FillRect( hdc, &rect, GetSysColorBrush(COLOR_MENU) ); 1086 else { 1087 //SvL: TODO: Bug in GDI32; draws black rectangle instead of menu color 1088 /// 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) ); 1094 } 1088 1095 1089 1096 SetBkMode( hdc, TRANSPARENT ); … … 1782 1789 /* Find where to insert new item */ 1783 1790 1784 if ((flags & MF_BYPOSITION) && 1785 ((pos == (UINT)-1) || (pos == menu->nItems))) 1791 if ((pos==(UINT)-1) || ((flags & MF_BYPOSITION) && (pos == menu->nItems))) 1786 1792 { 1787 1793 /* Special case: append to menu */ … … 2117 2123 { 2118 2124 Win32BaseWindow *win32wnd = Win32BaseWindow::GetWindowFromHandle(menu->hWnd); 2125 if(win32wnd==NULL) 2126 DebugInt3(); 2119 2127 2120 2128 ht = win32wnd->HandleNCHitTest(pt); … … 3716 3724 3717 3725 3718 if ( GetWindowLongA(hWnd,GWL_STYLE) & WS_CHILD)3726 if (!(GetWindowLongA(hWnd,GWL_STYLE) & WS_CHILD)) 3719 3727 { 3720 3728 if (GetCapture() == hWnd) ReleaseCapture();
Note:
See TracChangeset
for help on using the changeset viewer.