Ignore:
Timestamp:
Jan 7, 2002, 12:18:11 PM (24 years ago)
Author:
sandervl
Message:

fixed restoring of minimized or maximized window

File:
1 edited

Legend:

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

    r7708 r7734  
    1 /* $Id: win32wbase.cpp,v 1.308 2001-12-30 16:51:37 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.309 2002-01-07 11:18:10 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    26772677        NotifyFrameChanged(&wpos, &oldClientRect);
    26782678    }
     2679    if(!(getStyle() & (WS_MAXIMIZE|WS_MINIMIZE))) {
     2680        //Restore position always changes when the window position is changed
     2681        dprintf(("Save new restore position (%d,%d)(%d,%d)", rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom));
     2682        windowpos.rcNormalPosition = rectWindow;
     2683    }
    26792684    return (rc);
    26802685}
     
    27982803        /* SDK: ...valid only the next time... */
    27992804        if(wndpl->flags & WPF_RESTORETOMAXIMIZED)
    2800         setFlags(getFlags() | WIN_RESTORE_MAX);
     2805            setFlags(getFlags() | WIN_RESTORE_MAX);
    28012806   }
    28022807   return TRUE;
Note: See TracChangeset for help on using the changeset viewer.