Ignore:
Timestamp:
Dec 5, 1999, 3:31:41 PM (26 years ago)
Author:
sandervl
Message:

WM_WINDOWPOSCHANGED bugfix: don't pass it on to win32 app if frame size/pos changed

File:
1 edited

Legend:

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

    r1971 r1981  
    1 /* $Id: pmwindow.cpp,v 1.62 1999-12-05 00:31:47 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.63 1999-12-05 14:31:41 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    376376           wp.hwndInsertAfter = wndAfter->getWindowHandle();
    377377        }
    378         //SvL: Can be sent twice now (once in pmframe, once here); shouldn't really matter though...
    379         win32wnd->MsgPosChanged((LPARAM)&wp);
     378
     379        PRECT lpRect = win32wnd->getWindowRect();
     380        //SvL: Only send it when the client has changed & the frame hasn't
     381        //     If the frame size/position has changed, pmframe.cpp will send
     382        //     this message
     383        if(lpRect->right == wp.x+wp.cx && lpRect->bottom == wp.y+wp.cy) {
     384                win32wnd->MsgPosChanged((LPARAM)&wp);
     385        }
     386        else    win32wnd->setWindowRect(wp.x, wp.y, wp.x+wp.cx, wp.y+wp.cy);
    380387
    381388        goto RunDefWndProc;
Note: See TracChangeset for help on using the changeset viewer.