- Timestamp:
- Jul 4, 2001, 11:29:52 AM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r6040 r6166 1 /* $Id: pmwindow.cpp,v 1.13 7 2001-06-17 21:08:00sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.138 2001-07-04 09:29:51 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 494 494 495 495 case WM_TIMER: 496 dprintf(("WM_TIMER %x %x time %x", win32wnd->getWindowHandle(), pWinMsg->wParam, GetTickCount())); 496 497 win32wnd->DispatchMsgA(pWinMsg); 497 498 goto RunDefWndProc; … … 751 752 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)); 752 753 754 if(win32wnd->IsParentChanging()) { 755 rc = 0; 756 break; 757 } 758 753 759 if(pswp->fl & SWP_NOADJUST) { 754 760 //ignore weird messages (TODO: why are they sent?) … … 877 883 878 884 dprintf(("PMFRAME:WM_WINDOWPOSCHANGED (%x) %x %x (%d,%d) (%d,%d)", mp2, win32wnd->getWindowHandle(), pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy)); 885 if(win32wnd->IsParentChanging()) { 886 goto PosChangedEnd; 887 } 879 888 880 889 if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0) -
trunk/src/user32/win32wbase.cpp
r6040 r6166 1 /* $Id: win32wbase.cpp,v 1.27 1 2001-06-17 21:08:01 sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.272 2001-07-04 09:29:51 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 106 106 fInternalMsg = FALSE; 107 107 fNoSizeMsg = FALSE; 108 fParentChange = FALSE; 108 109 fIsDestroyed = FALSE; 109 110 fDestroyWindowCalled = FALSE; … … 2787 2788 } 2788 2789 if(oldparent) { 2790 //release parent here (increased refcount during creation) 2789 2791 RELEASE_WNDOBJ(oldparent); 2790 2792 } … … 2794 2796 setParent(newparent); 2795 2797 getParent()->addChild(this); 2798 fParentChange = TRUE; 2799 2796 2800 OSLibWinSetParent(getOS2FrameWindowHandle(), getParent()->getOS2WindowHandle()); 2797 2801 if(!(getStyle() & WS_CHILD)) … … 2805 2809 } 2806 2810 } 2811 //SvL: Even though the win32 coordinates might not change, the PM 2812 // coordinates can. We must make sure the control stays at the 2813 // same position (y) relative to the (new) parent. 2814 SetWindowPos(HWND_TOPMOST, rectWindow.left, rectWindow.top, 0, 0, 2815 SWP_NOACTIVATE|SWP_NOSIZE); 2816 fParentChange = FALSE; 2807 2817 } 2808 2818 else { -
trunk/src/user32/win32wbase.h
r6067 r6166 1 /* $Id: win32wbase.h,v 1.12 1 2001-06-22 18:32:11sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.122 2001-07-04 09:29:52 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 253 253 HWND getOS2HwndModalDialog() { return OS2HwndModalDialog; }; 254 254 BOOL CanReceiveSizeMsgs() { return !fNoSizeMsg; }; 255 BOOL IsParentChanging() { return fParentChange; }; 255 256 BOOL IsWindowCreated() { return fCreated; } 256 257 BOOL IsWindowDestroyed() { return fIsDestroyed; }; … … 373 374 //sent by PM and those sent by apps 374 375 fNoSizeMsg:1, 376 fParentChange:1, 375 377 fIsDestroyed:1, 376 378 fDestroyWindowCalled:1, //DestroyWindow was called for this window
Note:
See TracChangeset
for help on using the changeset viewer.