Ignore:
Timestamp:
Apr 24, 2003, 4:32:02 PM (22 years ago)
Author:
sandervl
Message:

PF: Fixed restore/maximize from minimized state for MDI windows

File:
1 edited

Legend:

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

    r10031 r10035  
    1 /* $Id: pmwindow.cpp,v 1.209 2003-04-23 18:00:59 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.210 2003-04-24 14:32:02 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    15011501        }
    15021502
     1503        // PF: MDI window is not a common OS/2 frame window so we just skipped all
     1504        // PM default processing for it that basicly moved this window to 0,0 point
     1505        // and changed frame controls. Now do our own processing.
     1506
     1507        if ((pswp->fl & SWP_MAXIMIZE) && (win32wnd->getExStyle() & WS_EX_MDICHILD_W))
     1508        {
     1509         SendMessageA(win32wnd->getWindowHandle(), WM_SYSCOMMAND_W, SC_MAXIMIZE_W, 0);
     1510         goto PosChangedEnd;
     1511        }
     1512
    15031513        //SvL: When a window is made visible, then we don't receive a
    15041514        //     WM_VRNENABLED message (for some weird reason)
     
    19811991        if ((swp->fl & SWP_MAXIMIZE) == SWP_MAXIMIZE)
    19821992        {
     1993            // MDI frame windows are not common PM windows so we need to
     1994            // drop-out WHOLE chain of WM_X commands with SWP_MAXIMIZE flag
     1995            // finally last WM_WINDOWPOSCHANGED will take care of maximization
     1996
     1997            if (win32wnd->getExStyle() & WS_EX_MDICHILD_W) {
     1998               rc = 0;
     1999               break;
     2000            }
     2001
    19832002            RECT rect;
    19842003            rect.left = rect.top = rect.right = rect.bottom = 0;
Note: See TracChangeset for help on using the changeset viewer.