Changeset 3747 for trunk/src/user32/dc.cpp
- Timestamp:
- Jun 23, 2000, 9:04:13 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r3722 r3747 1 /* $Id: dc.cpp,v 1.6 2 2000-06-17 09:45:00 sandervl Exp $ */1 /* $Id: dc.cpp,v 1.63 2000-06-23 19:04:10 sandervl Exp $ */ 2 2 3 3 /* … … 984 984 } 985 985 //****************************************************************************** 986 //Helper for RedrawWindow (RDW_ALLCHILDREN_W) 987 //****************************************************************************** 988 LRESULT WIN32API RedrawChildEnumProc(HWND hwnd, LPARAM lParam) 989 { 990 RedrawWindow(hwnd, NULL, 0, lParam); 991 return TRUE; 992 } 993 //****************************************************************************** 986 994 // This implementation of RedrawWindow supports 987 995 // RDW_ERASE … … 1145 1153 if(redraw & RDW_ERASENOW_W && wnd->needsEraseBkgnd()) 1146 1154 wnd->setEraseBkgnd(sendEraseBkgnd(wnd) == 0); 1155 if(redraw & RDW_ALLCHILDREN_W) { 1156 EnumChildWindows(wnd->getWindowHandle(), RedrawChildEnumProc, redraw); 1157 } 1147 1158 } 1148 1159 else if((redraw & RDW_INTERNALPAINT_W) && !(redraw & RDW_INVALIDATE_W)) … … 1180 1191 1181 1192 dprintf (("User32: UpdateWindow hwnd %x", hwnd)); 1182 ////SvL: This doesn't work right (Wine uses RDW_NOCHILDREN_W -> doesn't work here) 1183 //// Breaks vpbuddy 1184 //// return RedrawWindow( hwnd, NULL, 0, RDW_UPDATENOW_W | RDW_ALLCHILDREN_W); 1193 //SvL: This doesn't work right (Wine uses RDW_NOCHILDREN_W -> doesn't work here) 1194 // Breaks vpbuddy 1195 // return RedrawWindow(hwnd, NULL, 0, RDW_UPDATENOW_W | RDW_ALLCHILDREN_W); 1196 // -> RDW_UPDATENOW causes WM_PAINT messages to be directy posted to window 1197 // handler; possibly bypassing queued WM_PAINT messages for parent window(s) 1198 // -> out of sync painting (i.e. parent paints over child) 1185 1199 WinUpdateWindow(wnd->getOS2WindowHandle()); 1186 1200 return TRUE; … … 1196 1210 } 1197 1211 else dprintf(("InvalidateRect %x NULL erase=%d", hwnd, erase)); 1212 if(hwnd == 0x6800000f) { 1213 result = 0; 1214 } 1198 1215 result = RedrawWindow (hwnd, pRect, NULLHANDLE, 1199 1216 RDW_ALLCHILDREN_W | RDW_INVALIDATE_W |
Note:
See TracChangeset
for help on using the changeset viewer.