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

minimize & restore fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.