Changeset 6001 for trunk/src/user32/win32dlg.cpp
- Timestamp:
- Jun 13, 2001, 7:28:07 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r5977 r6001 1 /* $Id: win32dlg.cpp,v 1.6 8 2001-06-12 18:25:11sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.69 2001-06-13 17:28:06 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 729 729 int rc; 730 730 731 // if (!windowClass || !windowClass->getBackgroundBrush()) return 0;732 731 if (!windowClass) return 0; 733 732 … … 735 734 if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION)) 736 735 { 737 #if 0 738 HBRUSH hBrush = windowClass->getBackgroundBrush(); 739 740 if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) 741 hBrush = GetSysColorBrush(hBrush-1); 742 743 FillRect( (HDC)wParam, &rect, hbrush); 744 #else 745 //SvL: Ignore class background brush 746 FillRect((HDC)wParam, &rect, GetSysColorBrush(COLOR_BTNFACE)); 747 #endif 736 HBRUSH hBrush = SendInternalMessageA(WM_CTLCOLORDLG, wParam, getWindowHandle()); 737 if(GetObjectType(hBrush) != OBJ_BRUSH) { 738 DefWndControlColor(CTLCOLOR_DLG, (HDC)wParam); 739 } 740 FillRect( (HDC)wParam, &rect, hBrush); 748 741 } 749 742
Note:
See TracChangeset
for help on using the changeset viewer.