Changeset 9834 for trunk/src


Ignore:
Timestamp:
Feb 22, 2003, 10:54:25 AM (23 years ago)
Author:
sandervl
Message:

PF: fixes for minmizing/maximizing/restoring

File:
1 edited

Legend:

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

    r9792 r9834  
    1 /* $Id: pmwindow.cpp,v 1.199 2003-02-13 10:34:49 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.200 2003-02-22 09:54:25 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    19041904            break;
    19051905        }
     1906        //hack alert: as we return zero as border size (check handler) we need
     1907        //to do adjustments here as well or PM will calculate it for us and
     1908        //result will be illegal. Btw we do not honour PM border size settings
     1909        //and never will. I was unable to figure out why only X coordinate
     1910        //is being broken but not Y as well.
     1911
     1912        if ((pswp->fl & SWP_MAXIMIZE) == SWP_MAXIMIZE) 
     1913        {
     1914            RECT rect;
     1915            rect.left = rect.top = rect.right = rect.bottom = 0;
     1916            win32wnd->AdjustMaximizedRect(&rect);
     1917
     1918            pswp->x += rect.left;
     1919        }
    19061920        goto RunDefFrameWndProc;
    19071921    }
     
    19261940        if ((swp->fl & SWP_MAXIMIZE) == SWP_MAXIMIZE)
    19271941        {
    1928             win32wnd->setStyle((win32wnd->getStyle() & ~WS_MINIMIZE_W) | WS_MAXIMIZE_W);
    1929 
    19301942            RECT rect;
    1931 
    19321943            rect.left = rect.top = rect.right = rect.bottom = 0;
    19331944            win32wnd->AdjustMaximizedRect(&rect);
     1945
    19341946            swp->x += rect.left;
    19351947            swp->cx += rect.right-rect.left;
    19361948            swp->y -= rect.bottom;
    19371949            swp->cy += rect.bottom-rect.top;
     1950
     1951            win32wnd->ShowWindow(SW_RESTORE_W);
    19381952        }
    19391953        else
Note: See TracChangeset for help on using the changeset viewer.