Changeset 1849 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Nov 26, 1999, 6:06:09 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r1831 r1849 1 /* $Id: pmwindow.cpp,v 1.5 6 1999-11-24 19:32:22 sandervlExp $ */1 /* $Id: pmwindow.cpp,v 1.57 1999-11-26 17:06:08 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 178 178 ScreenWidth = desktopRectl.xRight; 179 179 ScreenHeight = desktopRectl.yTop; 180 181 180 181 182 182 HDC hdc; /* Device-context handle */ 183 183 /* context data structure */ 184 184 DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL, 185 185 NULL, NULL, NULL}; 186 186 187 187 /* create memory device context */ 188 188 hdc = DevOpenDC(hab, OD_MEMORY, "*", 5L, (PDEVOPENDATA)&dop, NULLHANDLE); … … 213 213 } 214 214 if(msg == WIN32APP_POSTMSG && (ULONG)mp1 == WIN32PM_MAGIC) { 215 //win32 app user message 216 215 //win32 app user message 216 win32wnd->PostMessage((POSTMSG_PACKET *)mp2); 217 217 return (MRESULT)0; 218 218 } … … 869 869 { 870 870 dprintf(("OS2: WM_ERASEBACKGROUND %x", win32wnd->getWindowHandle())); 871 //CB: handled in WM_PAINT too, don't do it twice! 872 871 873 if (WinQueryUpdateRect (hwnd, NULL) && !win32wnd->isSupressErase()) { 872 874 BOOL erased = sendEraseBkgnd (win32wnd); 873 875 win32wnd->setEraseBkgnd (!erased, !erased); 874 876 } 877 875 878 break; 876 879 } 877 880 878 881 case WM_PAINT: 882 { 879 883 dprintf(("OS2: WM_PAINT %x", hwnd)); 880 884 … … 885 889 } 886 890 } 891 887 892 win32wnd->setSupressErase (FALSE); 888 893 889 if(win32wnd->MsgPaint(0, 0)) { 890 goto RunDefWndProc; 891 } 892 //Apparently there are apps that return 0, but don't do anything during WM_PAINT 894 win32wnd->MsgPaint(0, 0); 895 896 //validate the update region, WM_PAINT has no return value 893 897 goto RunDefWndProc; 898 } 894 899 895 900 case WM_HITTEST:
Note:
See TracChangeset
for help on using the changeset viewer.