Ignore:
Timestamp:
Jan 9, 2000, 3:38:30 PM (26 years ago)
Author:
sandervl
Message:

Several updates/bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/pmframe.cpp

    r2371 r2383  
    1 /* $Id: pmframe.cpp,v 1.33 2000-01-08 14:15:06 sandervl Exp $ */
     1/* $Id: pmframe.cpp,v 1.34 2000-01-09 14:37:09 sandervl Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    234234      //CB: call WM_NCCALCSIZE and set client pos
    235235      //    WM_PAINT -> WM_NCPAINT
    236       //    WM_HITTEST -> MsgHitTest()
    237236      //    mouse messages -> MsgButton()
    238237      goto RunDefFrameProc;
     
    320319        dprintf(("PMFRAME: WM_WINDOWPOSCHANGED (%x) %x %x (%d,%d) (%d,%d)", mp2, win32wnd->getWindowHandle(), pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
    321320
     321        //Signal to the children that their parent's window rect has changed
     322        //(the children don't always receive a notification -> their window
     323        // rectangle (in screen coordinates) will get out of sync)
     324        if(pswp->fl & (SWP_MOVE | SWP_SIZE)) {
     325                win32wnd->setWindowRectChanged();
     326        }
     327
    322328        RestoreOS2TIB();
    323329        rc = OldFrameProc(hwnd,msg,mp1,mp2);
     
    337343        OSLibMapSWPtoWINDOWPOSFrame(pswp, &wp, &swpOld, hParent, hwnd);
    338344
    339         win32wnd->setWindowRect(wp.x, wp.y, wp.x+wp.cx, wp.y+wp.cy);
    340         win32wnd->setClientRect(swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy);
    341 
     345        if(pswp->fl & (SWP_MOVE | SWP_SIZE)) {
     346                win32wnd->setWindowRect(wp.x, wp.y, wp.x+wp.cx, wp.y+wp.cy);
     347                win32wnd->setClientRect(swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy);
     348        }
    342349        if(win32wnd->CanReceiveSizeMsgs())
    343350          win32wnd->MsgPosChanged((LPARAM)&wp);
Note: See TracChangeset for help on using the changeset viewer.