Changeset 2433 for trunk/src/user32/new/win32wbasepos.cpp
- Timestamp:
- Jan 13, 2000, 9:11:39 PM (26 years ago)
- 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 cbratschiExp $ */1 /* $Id: win32wbasepos.cpp,v 1.6 2000-01-13 20:11:39 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (nonclient/position methods) … … 134 134 winposCopy = *winpos; 135 135 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 136 144 params.rgrc[2] = *oldClientRect; 137 145 params.lppos = &winposCopy; 138 146 } 139 result = SendInternalMessageA(WM_NCCALCSIZE, calcValidRect, 140 (LPARAM)¶ms ); 147 result = SendInternalMessageA(WM_NCCALCSIZE, calcValidRect, (LPARAM)¶ms ); 141 148 if (calcValidRect) 142 149 { 143 150 /* If the application send back garbage, ignore it */ 144 151 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 } 146 163 else 147 164 SetRectEmpty(newClientRect);
Note:
See TracChangeset
for help on using the changeset viewer.