Changeset 10045 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Apr 28, 2003, 10:41:08 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r10033 r10045 1 /* $Id: win32wbase.cpp,v 1.36 8 2003-04-24 13:59:14sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.369 2003-04-28 08:41:08 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 1831 1831 case WM_ICONERASEBKGND: 1832 1832 { 1833 RECT rect; 1834 int rc; 1835 1836 if (!windowClass || !windowClass->getBackgroundBrush()) return 0; 1833 HBRUSH hBrush; 1834 RECT rect; 1835 int rc; 1836 1837 if (!windowClass || (!windowClass->getBackgroundBrush() 1838 && !(getStyle() & WS_MINIMIZE))) return 0; 1839 1840 //PF For PM desktop/MDI icons allocate brush as well to avoid 1841 //garbage in icons 1842 1843 if (!windowClass->getBackgroundBrush()) 1844 hBrush = GetStockObject(GRAY_BRUSH); 1845 else 1846 { 1847 hBrush = windowClass->getBackgroundBrush(); 1848 if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) 1849 hBrush = GetSysColorBrush(hBrush-1); 1850 } 1851 1837 1852 1838 1853 rc = GetClipBox( (HDC)wParam, &rect ); 1839 1854 if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION)) 1840 {1841 HBRUSH hBrush = windowClass->getBackgroundBrush();1842 1843 if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1))1844 hBrush = GetSysColorBrush(hBrush-1);1845 1846 1855 FillRect( (HDC)wParam, &rect, hBrush); 1847 } 1856 1848 1857 return 1; 1849 1858 }
Note:
See TracChangeset
for help on using the changeset viewer.