Changeset 1572 for trunk/src/user32/pmframe.cpp
- Timestamp:
- Nov 3, 1999, 7:00:29 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmframe.cpp
r1542 r1572 1 /* $Id: pmframe.cpp,v 1.1 7 1999-11-02 17:07:25 cbratschi Exp $ */1 /* $Id: pmframe.cpp,v 1.18 1999-11-03 18:00:25 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 241 241 dprintf(("PMFRAME: WM_ADJUSTWINDOWPOS %x %x %x (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy)); 242 242 243 //CB: show dialog in front of owner 244 if (win32wnd->IsModalDialogOwner()) 245 { 246 pswp->fl |= SWP_ZORDER; 247 pswp->hwndInsertBehind = win32wnd->getOS2HwndModalDialog(); 248 if (pswp->fl & SWP_ACTIVATE) 249 { 250 pswp->fl &= ~SWP_ACTIVATE; 251 WinSetWindowPos(win32wnd->getOS2HwndModalDialog(),0,0,0,0,0,SWP_ACTIVATE); 252 } 253 } 254 243 255 if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0) 244 256 goto RunDefFrameProc; … … 394 406 return rc; 395 407 } 408 396 409 case WM_ACTIVATE: 397 410 { … … 406 419 WinSetWindowUShort(hwnd,QWS_FLAGS,mp1 ? (flags | FF_ACTIVE):(flags & ~FF_ACTIVE)); 407 420 421 //CB: show owner behind the dialog 422 if (win32wnd->IsModalDialog()) 423 { 424 Win32BaseWindow *topOwner = win32wnd->getOwner()->getTopParent(); 425 426 if (topOwner) WinSetWindowPos(topOwner->getOS2FrameWindowHandle(),hwnd,0,0,0,0,SWP_ZORDER); 427 } 408 428 409 429 RestoreOS2TIB(); … … 433 453 dprintf(("PMFRAME: WM_BUTTON1DOWN")); 434 454 #endif 455 435 456 if (InSizeBox(win32wnd,(POINTS*)&mp1)) 436 457 {
Note:
See TracChangeset
for help on using the changeset viewer.