Ignore:
Timestamp:
Jun 25, 2003, 7:02:04 PM (22 years ago)
Author:
sandervl
Message:

PF: ShowWindow(SW_RESTORE) should start the same PM restoration routine as WM_SYSCOMMAND

File:
1 edited

Legend:

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

    r10136 r10145  
    1 /* $Id: window.cpp,v 1.135 2003-06-03 11:58:38 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.136 2003-06-25 17:02:04 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    3737#include "user32.h"
    3838#include "winicon.h"
     39#include "pmwindow.h"
    3940#include "oslibmsg.h"
    4041#include <win\winpos.h>
     
    519520        return 0;
    520521    }
    521     ret = window->ShowWindow(nCmdShow);
     522
     523    //PF Start PM restoration routine first if we restore from icon
     524    //so all internal PM logic will work - this routine will always
     525    //lead to ShowWindow(SW_RESTORE)
     526
     527    if ((nCmdShow == SW_RESTORE) && (window->getStyle() & WS_MINIMIZE) && fOS2Look )
     528    {
     529        dprintf(("ShowWindow: Initiating OS/2 PM restore"));         
     530        ret = OSLibWinRestoreWindow(window->getOS2FrameWindowHandle());
     531    }
     532    else   
     533        ret = window->ShowWindow(nCmdShow);
    522534    RELEASE_WNDOBJ(window);
    523535    return ret;
Note: See TracChangeset for help on using the changeset viewer.