Changeset 2340 for trunk/src/user32/new/win32wbase.cpp
- Timestamp:
- Jan 6, 2000, 6:05:52 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wbase.cpp
r2335 r2340 1 /* $Id: win32wbase.cpp,v 1.2 2 2000-01-05 21:25:07cbratschi Exp $ */1 /* $Id: win32wbase.cpp,v 1.23 2000-01-06 17:05:52 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 700 700 rectWindow.bottom = cs->y+cs->cy; 701 701 rectClient = rectWindow; //dummy client rect 702 MapWindowPoints(getParent() ? getParent()->getWindowHandle():OSLIB_HWND_DESKTOP,0,(PPOINT)&rectWindow,2);702 if (getParent()) MapWindowPoints(getParent()->getWindowHandle(),0,(PPOINT)&rectWindow,2); 703 703 /* Send the WM_CREATE message 704 704 * Perhaps we shouldn't allow width/height changes as well. … … 721 721 rectWindow.bottom = cs->y+cs->cy; 722 722 rectClient = rectWindow; 723 MapWindowPoints(getParent() ? getParent()->getWindowHandle():OSLIB_HWND_DESKTOP,0,(PPOINT)&rectWindow,2);723 if (getParent()) MapWindowPoints(getParent()->getWindowHandle(),0,(PPOINT)&rectWindow,2); 724 724 OffsetRect(&rectWindow, maxPos.x - rectWindow.left, maxPos.y - rectWindow.top); 725 725 //set the window size and update the client 726 726 rect = rectWindow; 727 MapWindowPoints(0,getParent() ? getParent()->getWindowHandle():OSLIB_HWND_DESKTOP,(PPOINT)&rect,2);727 if (getParent()) MapWindowPoints(0,getParent()->getWindowHandle(),(PPOINT)&rect,2); 728 728 SetWindowPos(hwndLinkAfter,rect.left,rect.top,rect.right-rect.left,rect.bottom-rect.top,SWP_NOACTIVATE | SWP_NOREDRAW | SWP_FRAMECHANGED); 729 729 fNoSizeMsg = FALSE; … … 1118 1118 wndPos.hwndInsertAfter = 0; 1119 1119 rect = rectWindow; 1120 MapWindowPoints(Win32Hwnd,(getParent()) ? getParent()->getWindowHandle():HWND_DESKTOP,(PPOINT)&rect,2);1120 if (getParent()) MapWindowPoints(0,getParent()->getWindowHandle(),(PPOINT)&rect,2); 1121 1121 wndPos.x = rect.left; 1122 1122 wndPos.y = rect.top; … … 1553 1553 1554 1554 clientRect = &((NCCALCSIZE_PARAMS*)winRect)->rgrc[2]; 1555 clientRect->left = 0; 1556 clientRect->right = rectWindow.right-rectWindow.left; 1557 clientRect->top = 0; 1558 clientRect->bottom = rectWindow.bottom-rectWindow.top; 1559 mapWin32Rect(OS2HwndFrame,getParent() ? getParent()->getWindowHandle():OSLIB_HWND_DESKTOP,clientRect); 1555 *clientRect = rectWindow; 1556 if (getParent()) MapWindowPoints(0,getParent()->getOS2WindowHandle(),(PPOINT)clientRect,2); 1560 1557 1561 1558 if(!(dwStyle & WS_MINIMIZE))
Note:
See TracChangeset
for help on using the changeset viewer.