Ignore:
Timestamp:
Oct 8, 1999, 1:21:31 AM (26 years ago)
Author:
sandervl
Message:

SetWindowPos bugfix

File:
1 edited

Legend:

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

    r1159 r1176  
    1 /* $Id: win32wbase.cpp,v 1.26 1999-10-07 09:28:01 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.27 1999-10-07 23:21:31 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    20032003      if (swp.cx < minTrack.x) swp.cx = minTrack.x;
    20042004      if (swp.cy < minTrack.y) swp.cy = minTrack.y;
     2005
     2006      RECTLOS2 rectFrame;
     2007
     2008      //Calculate correct frame rectangle from client rectangle
     2009      //NOTE: xLeft & yBottom can become too big
     2010      //Some programs use GetSystemMetrics 32/33 to determine offsets
     2011      rectFrame.xLeft   = swp.x;
     2012      rectFrame.yBottom = swp.y;
     2013      rectFrame.xRight  = swp.x + swp.cx;
     2014      rectFrame.yTop    = swp.y + swp.cy;
     2015
     2016      OSLibWinCalcFrameRect(OS2HwndFrame, &rectFrame, FALSE);     
     2017      swp.x  = rectFrame.xLeft;
     2018      swp.y  = rectFrame.yBottom;
     2019      swp.cx = rectFrame.xRight - rectFrame.xLeft;
     2020      swp.cy = rectFrame.yTop - rectFrame.yBottom;
     2021      if(swp.x < 0) {
     2022        swp.cx += -swp.x;
     2023        swp.x   = 0;
     2024      }
     2025      if(swp.y + swp.cy > ScreenHeight) {
     2026        swp.y = ScreenHeight - swp.cy;
     2027      }
    20052028      swp.hwnd = OS2HwndFrame;
    20062029   } else
Note: See TracChangeset for help on using the changeset viewer.