Changeset 10008 for trunk/src


Ignore:
Timestamp:
Apr 11, 2003, 12:55:02 PM (22 years ago)
Author:
sandervl
Message:

Send WM_WINDOWPOSCHANGED for ShowWindow(SW_SHOWWINDOW)

File:
1 edited

Legend:

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

    r9964 r10008  
    1 /* $Id: pmwindow.cpp,v 1.207 2003-04-01 09:58:36 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.208 2003-04-11 10:55:02 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    15101510        }
    15111511
    1512         if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0)
    1513         {
    1514             if(pswp->fl & SWP_RESTORE && win32wnd->getStyle() & WS_MINIMIZE_W) {
    1515                 dprintf(("Restoring minimized window %x", win32wnd->getWindowHandle()));
    1516                 win32wnd->ShowWindow(SW_RESTORE_W);
    1517             }
    1518             if(pswp->fl & SWP_SHOW) {
    1519                 WinShowWindow(win32wnd->getOS2WindowHandle(), 1);
    1520             }
    1521             else
    1522             if(pswp->fl & SWP_HIDE) {
    1523                 WinShowWindow(win32wnd->getOS2WindowHandle(), 0);
    1524             }
    1525             //MUST call the old frame window proc!
    1526             goto RunDefFrameWndProc;
    1527         }
    1528 
    15291512        if(pswp->fl & (SWP_MOVE | SWP_SIZE))
    15301513        {
     
    15551538            }
    15561539            else wp.hwndInsertAfter = HWND_TOP_W;
     1540        }
     1541
     1542        if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0)
     1543        {
     1544            if(pswp->fl & SWP_RESTORE && win32wnd->getStyle() & WS_MINIMIZE_W) {
     1545                dprintf(("Restoring minimized window %x", win32wnd->getWindowHandle()));
     1546                win32wnd->ShowWindow(SW_RESTORE_W);
     1547            }
     1548            if(pswp->fl & SWP_SHOW) {
     1549                WinShowWindow(win32wnd->getOS2WindowHandle(), 1);
     1550            }
     1551            else
     1552            if(pswp->fl & SWP_HIDE) {
     1553                WinShowWindow(win32wnd->getOS2WindowHandle(), 0);
     1554            }
     1555            if(pswp->fl & (SWP_SHOW|SWP_HIDE))
     1556            {//TODO: necessary for more options? (activate?)
     1557                if(win32wnd->CanReceiveSizeMsgs())
     1558                    win32wnd->MsgPosChanged((LPARAM)&wp);
     1559            }
     1560
     1561            //MUST call the old frame window proc!
     1562            goto RunDefFrameWndProc;
    15571563        }
    15581564
Note: See TracChangeset for help on using the changeset viewer.