Changeset 5777 for trunk/src/user32


Ignore:
Timestamp:
May 22, 2001, 11:33:16 AM (24 years ago)
Author:
sandervl
Message:

minimize & restore fixes

Location:
trunk/src/user32
Files:
3 edited

Legend:

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

    r5721 r5777  
    1 /* $Id: oslibwin.cpp,v 1.94 2001-05-16 07:42:26 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.95 2001-05-22 09:33:10 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    775775    else dwWinStyle &= ~WS_CLIPSIBLINGS;
    776776
     777    if(dwStyle & WS_MINIMIZE_W) {
     778         dwWinStyle |= WS_MINIMIZED;
     779    }
     780    else dwWinStyle &= ~WS_MINIMIZED;
     781
    777782    if(dwWinStyle != dwOldWinStyle) {
    778783      WinSetWindowULong(hwndFrame, QWL_STYLE, dwWinStyle);
  • trunk/src/user32/pmwindow.cpp

    r5713 r5777  
    1 /* $Id: pmwindow.cpp,v 1.130 2001-05-15 14:31:39 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.131 2001-05-22 09:33:12 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    773773        if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0)
    774774        {
     775            if(pswp->fl & SWP_RESTORE && win32wnd->getStyle() & WS_MINIMIZE_W) {
     776                dprintf(("Restoring minimized window %x", win32wnd->getWindowHandle()));
     777                win32wnd->ShowWindow(SW_RESTORE_W);
     778            }
    775779            if(pswp->fl & SWP_SHOW) {
    776780                WinShowWindow(win32wnd->getOS2WindowHandle(), 1);
  • trunk/src/user32/win32wbasepos.cpp

    r5685 r5777  
    1 /* $Id: win32wbasepos.cpp,v 1.24 2001-05-11 08:39:45 sandervl Exp $ */
     1/* $Id: win32wbasepos.cpp,v 1.25 2001-05-22 09:33:16 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (nonclient/position methods)
     
    308308            setStyle(getStyle() | WS_MINIMIZE);
    309309
    310             iconPos.x = windowpos.ptMinPosition.x;
    311             iconPos.y = windowpos.ptMinPosition.y;
    312             WINPOS_FindIconPos(getWindowHandle(), iconPos);
    313             SetRect(lpRect, iconPos.x, iconPos.y, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON) );
     310            if(getParent() == NULL) {
     311                SetRect(lpRect, -32000, -32000, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON));
     312                OSLibSetWindowStyle(getOS2FrameWindowHandle(), getOS2WindowHandle(), getStyle(), getExStyle());
     313            }
     314            else {
     315                iconPos.x = windowpos.ptMinPosition.x;
     316                iconPos.y = windowpos.ptMinPosition.y;
     317                WINPOS_FindIconPos(getWindowHandle(), iconPos);
     318                SetRect(lpRect, iconPos.x, iconPos.y, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON) );
     319            }
    314320            break;
    315321
     
    319325            if(getStyle() & WS_MINIMIZE )
    320326            {
    321                  setStyle(getStyle() & ~WS_MINIMIZE);
     327                setStyle(getStyle() & ~WS_MINIMIZE);
     328                OSLibSetWindowStyle(getOS2FrameWindowHandle(), getOS2WindowHandle(), getStyle(), getExStyle());
    322329            }
    323330            setStyle(getStyle() | WS_MAXIMIZE);
     
    331338            {
    332339                setStyle(getStyle() & ~WS_MINIMIZE);
     340                OSLibSetWindowStyle(getOS2FrameWindowHandle(), getOS2WindowHandle(), getStyle(), getExStyle());
    333341
    334342                if( getFlags() & WIN_RESTORE_MAX)
Note: See TracChangeset for help on using the changeset viewer.