Ignore:
Timestamp:
Feb 7, 2003, 4:34:48 PM (23 years ago)
Author:
sandervl
Message:

Don't save position (for restore) in SetWindowPos if window is minimized

File:
1 edited

Legend:

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

    r9765 r9778  
    1 /* $Id: win32wbase.cpp,v 1.354 2003-02-06 20:28:42 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.355 2003-02-07 15:34:48 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    25692569            NotifyFrameChanged(&wpos, &oldClientRect);
    25702570        }
    2571         if(!fShowWindow)
     2571        if(!fShowWindow && !(getStyle() & WS_MINIMIZE))
    25722572        {
    25732573            //Restore position always changes when the window position is changed
    2574             dprintf(("Save new restore position (%d,%d)(%d,%d)", rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom));
     2574            dprintf(("Save new restore position %x (%d,%d)(%d,%d)", getWindowHandle(), rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom));
    25752575            windowpos.rcNormalPosition = rectWindow;
    25762576        }
     
    26442644        NotifyFrameChanged(&wpos, &oldClientRect);
    26452645    }
    2646     if(!fShowWindow)
     2646    if(!fShowWindow && !(getStyle() & WS_MINIMIZE))
    26472647    {
    26482648        //Restore position always changes when the window position is changed
    2649         dprintf(("Save new restore position (%d,%d)(%d,%d)", rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom));
     2649        dprintf(("Save new restore position %x (%d,%d)(%d,%d)", getWindowHandle(), rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom));
    26502650        windowpos.rcNormalPosition = rectWindow;
    26512651    }
Note: See TracChangeset for help on using the changeset viewer.