Changeset 10316 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Nov 12, 2003, 3:13:26 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r10275 r10316 1 /* $Id: win32wbase.cpp,v 1.3 79 2003-10-20 17:17:23sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.380 2003-11-12 14:10:20 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 117 117 fComingToTop = FALSE; 118 118 fMinMaxChange = FALSE; 119 f VisibleRegionChanged = FALSE;119 fPMUpdateRegionChanged = FALSE; 120 120 fEraseBkgndFlag = TRUE; 121 121 fIsDragDropActive= FALSE; … … 178 178 hWindowRegion = 0; 179 179 hClipRegion = 0; 180 hVisRegion = 0; 180 181 hUpdateRegion = 0; 181 182 … … 1219 1220 HDC hdcErase = hdc; 1220 1221 1221 if (hdcErase == 0) 1222 hdcErase = GetDC(getWindowHandle()); 1222 if (hdcErase == 0) { 1223 DebugInt3(); 1224 return 0; 1225 } 1223 1226 1224 1227 if(IsWindowIconic()) … … 1226 1229 else 1227 1230 rc = SendMessageA(getWindowHandle(),WM_ERASEBKGND, hdcErase, 0); 1228 if (hdc == 0) 1229 ReleaseDC(getWindowHandle(), hdcErase); 1231 1230 1232 return (rc); 1231 1233 } … … 1250 1252 } 1251 1253 //****************************************************************************** 1252 //TODO: Should use update region, not rectangle 1253 //****************************************************************************** 1254 ULONG Win32BaseWindow::MsgNCPaint(PRECT pUpdateRect) 1255 { 1256 HRGN hrgn; 1254 //****************************************************************************** 1255 ULONG Win32BaseWindow::MsgNCPaint(PRECT pUpdateRect, HRGN hrgnUpdate) 1256 { 1257 1257 ULONG rc; 1258 1258 RECT client = rectClient; … … 1267 1267 } 1268 1268 1269 dprintf(("MsgNCPaint (%d,%d)(%d,%d)", pUpdateRect->left, pUpdateRect->top, pUpdateRect->right, pUpdateRect->bottom)); 1270 hrgn = CreateRectRgnIndirect(pUpdateRect); 1271 1272 rc = SendMessageA(getWindowHandle(),WM_NCPAINT, hrgn, 0); 1269 rc = SendMessageA(getWindowHandle(),WM_NCPAINT, hrgnUpdate, 0); 1273 1270 //Send WM_PAINTICON here if minimized, because client window will 1274 1271 //not receive a (valid) WM_PAINT message … … 1277 1274 rc = SendMessageA(getWindowHandle(),WM_PAINTICON, 1, 0); 1278 1275 } 1279 1280 DeleteObject(hrgn);1281 1276 1282 1277 return rc; … … 2919 2914 } 2920 2915 //****************************************************************************** 2921 //Note: does not set last error if no parent (verified in NT4, SP6) 2916 // Win32BaseWindow::GetParent 2917 // 2918 // If the window is a child window, then return the parent window handle. 2919 // If it's a popup window, then return the owner 2920 // 2921 // Returns window handle of parent or owner window 2922 // 2923 // Note: does not set last error if no parent (verified in NT4, SP6) 2922 2924 //****************************************************************************** 2923 2925 HWND Win32BaseWindow::GetParent()
Note:
See TracChangeset
for help on using the changeset viewer.