Changeset 1000 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Sep 21, 1999, 7:05:36 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r996 r1000 1 /* $Id: pmwindow.cpp,v 1. 3 1999-09-21 08:24:04 sandervlExp $ */1 /* $Id: pmwindow.cpp,v 1.4 1999-09-21 17:05:36 dengert Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 27 27 #include "oslibgdi.h" 28 28 #include "oslibmsg.h" 29 #include "dc.h" 29 30 30 31 HMQ hmq = 0; /* Message queue handle */ … … 222 223 } 223 224 classStyle = win32wnd->getClass()->getStyle(); 224 // if (yDelta != 0)225 225 if ((yDelta != 0) && ((classStyle & CS_VREDRAW_W) || 226 226 ((classStyle & CS_HREDRAW_W) && (pswp->cx != pswpo->cx)))) … … 231 231 HWND hwnd; 232 232 233 dprintf(("move children"));234 233 while ((hwnd = WinGetNextWindow(henum)) != NULLHANDLE) 235 234 { 236 235 #if 0 237 /* Do not move MDI clients. MDI clients are a special case, 238 * even though they are bottom aligned they are always supposed 239 * to be the same size as their parent. This code is an 240 * optimization and will not work correctly if the this 241 * assumption is incorrect. 242 */ 243 WinBase *pBase = (WinBase *)WinQueryDAXData( hwnd ); 244 if ( pBase && pBase->typeOf() == mdiClient ) 236 if (mdiClient ) 245 237 { 246 238 continue; 247 239 } 248 240 #endif 249 // We don't know how many children we have so we'll move ten250 // at a time. Not very nice, I know.251 241 WinQueryWindowPos(hwnd, &(swp[i])); 252 253 // The SWP flags are all set but PM will ignore any254 // superflous ones, so keep them as they contain useful255 // minimise and maximise flags.256 242 swp[i].y += yDelta; 257 243 … … 269 255 WinEndEnumWindows(henum); 270 256 271 // Any remaining windows?272 257 if (i) 273 258 WinSetMultWindowPos(GetThreadHAB(), swp, i); … … 280 265 case WM_ERASEBACKGROUND: 281 266 { 282 if(win32wnd->MsgEraseBackGround(0)) { 283 goto RunDefWndProc; 267 if (!win32wnd->isSupressErase()) { 268 BOOL erased = sendEraseBkgnd (win32wnd); 269 win32wnd->setEraseBkgnd (!erased, !erased); 284 270 } 285 271 break; … … 558 544 559 545 case WM_TIMER: 560 546 win32wnd->MsgTimer((ULONG)mp1); 561 547 goto RunDefWndProc; 562 548 … … 592 578 case WM_PAINT: 593 579 dprintf(("OS2: WM_PAINT %x", hwnd)); 580 581 if (WinQueryUpdateRect (hwnd, NULL)) { 582 if (!win32wnd->isSupressErase()) { 583 BOOL erased = sendEraseBkgnd (win32wnd); 584 win32wnd->setEraseBkgnd (!erased, !erased); 585 } 586 } 587 win32wnd->setSupressErase (FALSE); 588 594 589 if(win32wnd->MsgPaint(0, 0)) { 595 590 goto RunDefWndProc;
Note:
See TracChangeset
for help on using the changeset viewer.