Ignore:
Timestamp:
Feb 23, 2001, 3:52:42 PM (25 years ago)
Author:
sandervl
Message:

mdi, setcursor, min/max/restore, dlglist changes

File:
1 edited

Legend:

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

    r5246 r5258  
    1 /* $Id: pmwindow.cpp,v 1.119 2001-02-22 18:18:59 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.120 2001-02-23 14:52:41 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    472472                else redrawAll = TRUE;
    473473
     474                if(win32wnd->IsMixMaxStateChanging()) {
     475                    dprintf(("WM_CALCVALIDRECT: window changed min/max/restore state, invalidate entire window"));
     476                    redrawAll = TRUE;
     477                }
     478
    474479                if (redrawAll)
    475480                {
     
    581586        SWP       swpOld;
    582587        WINDOWPOS wp;
    583         RECTL     newClientrect, oldClientRect;
     588        RECTL     newClientRect, oldClientRect;
    584589        ULONG     nccalcret;
    585590//        UINT      res = CVR_ALIGNLEFT | CVR_ALIGNTOP;
     
    616621
    617622        //Get new client rectangle
    618         mapWin32ToOS2Rect(pswp->cy, win32wnd->getClientRectPtr(), (PRECTLOS2)&newClientrect);
     623        mapWin32ToOS2Rect(pswp->cy, win32wnd->getClientRectPtr(), (PRECTLOS2)&newClientRect);
    619624
    620625        if(nccalcret == 0) {
     
    647652            }
    648653        }
    649         if(res != 0) {
    650 
     654        if(win32wnd->IsMixMaxStateChanging()) {
     655            dprintf(("WM_CALCVALIDRECT: window changed min/max/restore state, invalidate entire window"));
     656            res |= CVR_REDRAW;
     657        }
     658        if(res == (CVR_ALIGNTOP|CVR_ALIGNLEFT)) {
     659            oldRect->xRight  -= oldClientRect.xLeft;
     660            oldRect->yBottom += oldClientRect.yBottom;
     661            newRect->xRight  -= newClientRect.xLeft;
     662            newRect->yBottom += newClientRect.yBottom;
    651663        }
    652664
Note: See TracChangeset for help on using the changeset viewer.