Changeset 20408


Ignore:
Timestamp:
Feb 28, 2003, 10:56:00 AM (22 years ago)
Author:
sandervl
Message:

PF: Wrong checks on restoration point remembering. Maximizing window from PM icon using keyboard or menu produced wrong controls

Location:
tags/trunk/src/user32
Files:
2 edited

Legend:

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

    r20403 r20408  
    1 /* $Id: win32wbase.cpp,v 1.360 2003-02-27 14:22:44 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.361 2003-02-28 09:56:00 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    25792579            NotifyFrameChanged(&wpos, &oldClientRect);
    25802580        }
    2581         if(!fShowWindow && !(getStyle() & WS_MINIMIZE))
     2581        if(!fShowWindow && !(getStyle() & WS_MINIMIZE) && !(fuFlags & (SWP_NOSIZE | SWP_NOMOVE)))
    25822582        {
    25832583            //Restore position always changes when the window position is changed
  • TabularUnified tags/trunk/src/user32/win32wbasenonclient.cpp

    r20403 r20408  
    1 /* $Id: win32wbasenonclient.cpp,v 1.49 2003-02-27 14:22:45 sandervl Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.50 2003-02-28 09:56:00 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    13321332    case SC_MAXIMIZE:
    13331333        if(dwStyle & WS_MAXIMIZEBOX)
    1334            ShowWindow(SW_MAXIMIZE);
     1334          if (fOS2Look && (getOldStyle() & WS_MINIMIZE))
     1335          {
     1336              //PF Yes this is bad we do things twice - first restore window
     1337              //from iconic state and then quickly maximize. What is good is that
     1338              //only frame rects are recalculated twice. I checked lots of other
     1339              //ways - seems only this one is 100% bug-safe. This happens on every
     1340              //minimize from icon to maximum routine so not so often at all.
     1341              OSLibWinRestoreWindow(getOS2FrameWindowHandle());
     1342          }
     1343          ShowWindow(SW_MAXIMIZE);
    13351344        break;
    13361345
Note: See TracChangeset for help on using the changeset viewer.