Ignore:
Timestamp:
Jan 13, 2000, 9:11:39 PM (26 years ago)
Author:
sandervl
Message:

Client rectangle changes, GetDCEx bugfix (CS_OWNDC), scroll rectangle calculation fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/win32wbasepos.cpp

    r2410 r2433  
    1 /* $Id: win32wbasepos.cpp,v 1.5 2000-01-11 17:34:44 cbratschi Exp $ */
     1/* $Id: win32wbasepos.cpp,v 1.6 2000-01-13 20:11:39 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (nonclient/position methods)
     
    134134        winposCopy = *winpos;
    135135        params.rgrc[1] = *oldWindowRect;
     136#if 0
     137        if(getParent()) {//in parent coordinates
     138            MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), (POINT *)oldClientRect, 2);
     139        }
     140        else {//in screen coordinates (just add window rectangle origin (already in screen coordinates))
     141            OffsetRect(oldClientRect, rectWindow.left, rectWindow.top);
     142        }
     143#endif
    136144        params.rgrc[2] = *oldClientRect;
    137145        params.lppos = &winposCopy;
    138146   }
    139    result = SendInternalMessageA(WM_NCCALCSIZE, calcValidRect,
    140                          (LPARAM)&params );
     147   result = SendInternalMessageA(WM_NCCALCSIZE, calcValidRect, (LPARAM)&params );
    141148   if (calcValidRect)
    142149   {
    143150      /* If the application send back garbage, ignore it */
    144151      if (params.rgrc[2].left <= params.rgrc[2].right && params.rgrc[2].top <= params.rgrc[2].bottom)
    145          *newClientRect = params.rgrc[2];
     152      {
     153        *newClientRect = params.rgrc[2];
     154#if 0
     155        if(getParent()) {//in parent coordinates
     156            MapWindowPoints(getParent()->getWindowHandle(), getWindowHandle(), (POINT *)newClientRect, 2);
     157        }
     158        else {//in screen coordinates (just add window rectangle origin (already in screen coordinates))
     159            OffsetRect(newClientRect, -rectWindow.left, -rectWindow.top);
     160        }
     161#endif
     162      }
    146163      else
    147164        SetRectEmpty(newClientRect);
Note: See TracChangeset for help on using the changeset viewer.