Changeset 2663 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Feb 5, 2000, 5:25:00 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r2657 r2663 1 /* $Id: win32wbase.cpp,v 1.15 2 2000-02-05 14:08:53sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.153 2000-02-05 16:24:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 145 145 ownDC = 0; 146 146 hWindowRegion = 0; 147 hUpdateRegion = CreateRectRgn(0, 0, 0, 0); 147 148 148 149 if(currentProcessId == -1) … … 178 179 } 179 180 180 if (isOwnDC()) 181 releaseOwnDC (ownDC); 181 if(hUpdateRegion) { 182 DeleteObject(hUpdateRegion); 183 hUpdateRegion = 0; 184 } 185 186 if(isOwnDC()) 187 releaseOwnDC(ownDC); 182 188 183 189 if(Win32Hwnd) … … 186 192 if(userWindowLong) 187 193 free(userWindowLong); 194 188 195 if(windowNameA) { 189 196 free(windowNameA); … … 1433 1440 if (!windowClass || !windowClass->getBackgroundBrush()) return 0; 1434 1441 1435 rc = GetClipBox( (HDC)wParam, &rect ); 1442 // rc = GetClipBox( (HDC)wParam, &rect ); 1443 rc = GetRgnBox(hUpdateRegion, &rect); 1436 1444 if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION)) 1437 1445 { 1438 HBRUSH hBrush = windowClass->getBackgroundBrush(); 1439 1440 if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) hBrush = GetSysColorBrush(hBrush-1); 1441 1442 FillRect( (HDC)wParam, &rect, hBrush); 1446 HBRUSH hBrush = windowClass->getBackgroundBrush(); 1447 1448 if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) 1449 hBrush = GetSysColorBrush(hBrush-1); 1450 1451 // FillRect( (HDC)wParam, &rect, hBrush); 1452 FillRgn((HDC)wParam, hUpdateRegion, hBrush); 1443 1453 } 1444 1454 … … 2724 2734 return value; 2725 2735 2726 2736 value &= ~(WS_VISIBLE | WS_CHILD); /* Some bits can't be changed this way (WINE) */ 2727 2737 ss.styleOld = getStyle(); 2728 2738 ss.styleNew = value | (ss.styleOld & (WS_VISIBLE | WS_CHILD)); 2729 2739 dprintf(("SetWindowLong GWL_STYLE %x old %x new style %x", getWindowHandle(), ss.styleOld, ss.styleNew)); 2730 2740 SendInternalMessageA(WM_STYLECHANGING,GWL_STYLE,(LPARAM)&ss); 2731 2741 setStyle(ss.styleNew); 2732 2742 SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss); 2733 2734 windowClass->getStyle() & CS_SAVEBITS);2743 //// OSLibSetWindowStyle(getOS2FrameWindowHandle(), getStyle(), getExStyle(), 2744 //// windowClass->getStyle() & CS_SAVEBITS); 2735 2745 #ifdef DEBUG 2736 2746 PrintWindowStyle(ss.styleNew, 0);
Note:
See TracChangeset
for help on using the changeset viewer.