Changeset 2410 for trunk/src/user32/new/menu.cpp
- Timestamp:
- Jan 11, 2000, 6:34:44 PM (26 years ago)
- 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 sandervlExp $*/1 /* $Id: menu.cpp,v 1.7 2000-01-11 17:34:42 cbratschi Exp $*/ 2 2 /* 3 3 * Menu functions … … 20 20 * This is probably not the meaning this style has in MS-Windows. 21 21 */ 22 23 /*24 CB: not yet implemented:25 - Win32BaseWindow handling26 - message functions27 */28 22 29 23 #include <assert.h> … … 1085 1079 FillRect( hdc, &rect, GetSysColorBrush(COLOR_HIGHLIGHT) ); 1086 1080 else { 1087 1081 //SvL: TODO: Bug in GDI32; draws black rectangle instead of menu color 1088 1082 /// for everything except the 1st menu item 1089 1090 1091 1092 1093 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) ); 1094 1088 } 1095 1089 … … 1789 1783 /* Find where to insert new item */ 1790 1784 1791 if ((pos==(UINT)-1) || ((flags & MF_BYPOSITION) && (pos == menu->nItems))) 1785 if ((pos==(UINT)-1) || ((flags & MF_BYPOSITION) && (pos == menu->nItems))) 1792 1786 { 1793 1787 /* Special case: append to menu */ … … 2123 2117 { 2124 2118 Win32BaseWindow *win32wnd = Win32BaseWindow::GetWindowFromHandle(menu->hWnd); 2125 2126 2119 if(win32wnd==NULL) 2120 DebugInt3(); 2127 2121 2128 2122 ht = win32wnd->HandleNCHitTest(pt);
Note:
See TracChangeset
for help on using the changeset viewer.