Changeset 715 for trunk/src/user32/new/win32wnd.cpp
- Timestamp:
- Aug 27, 1999, 7:50:57 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/new/win32wnd.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wnd.cpp
r693 r715 1 /* $Id: win32wnd.cpp,v 1.3 0 1999-08-25 15:08:50dengert Exp $ */1 /* $Id: win32wnd.cpp,v 1.31 1999-08-27 17:50:56 dengert Exp $ */ 2 2 /* 3 3 * Win32 Window Code for OS/2 … … 256 256 { 257 257 SetParent(cs->hwndParent); 258 owner = GetWindowFromHandle(cs->hwndParent); 259 if(owner == NULL) 260 { 261 dprintf(("HMHandleTranslateToOS2 couldn't find owner window %x!!!", cs->hwndParent)); 262 return FALSE; 263 } 258 264 } 259 265 else … … 367 373 OS2Hwnd = OSLibWinCreateWindow((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP, 368 374 dwOSWinStyle, dwOSFrameStyle, (char *)cs->lpszName, 369 (owner) ? owner->getOS2 FrameWindowHandle() : OSLIB_HWND_DESKTOP,375 (owner) ? owner->getOS2WindowHandle() : OSLIB_HWND_DESKTOP, 370 376 (hwndLinkAfter == HWND_BOTTOM) ? TRUE : FALSE, 371 377 &OS2HwndFrame); … … 1068 1074 1069 1075 if (!(wpos->flags & SWP_NOCLIENTMOVE)) 1070 SendMessageA(WM_MOVE, 0, MAKELONG( wpos->x, wpos->y));1076 SendMessageA(WM_MOVE, 0, MAKELONG(rectClient.left, rectClient.top)); 1071 1077 1072 1078 if (!(wpos->flags & SWP_NOCLIENTSIZE)) … … 1075 1081 else if (dwStyle & WS_MINIMIZE) wp = SIZE_MINIMIZED; 1076 1082 1077 SendMessageA(WM_SIZE, wp, MAKELONG(wpos->cx,wpos->cy)); 1083 SendMessageA(WM_SIZE, wp, MAKELONG(rectClient.right - rectClient.left, 1084 rectClient.bottom - rectClient.top)); 1078 1085 } 1079 1086 return 0; … … 1469 1476 BOOL rc = FALSE; 1470 1477 Win32Window *window; 1478 HWND hParent = 0; 1471 1479 1472 1480 dprintf (("SetWindowPos %x %x (%d,%d)(%d,%d) %x", Win32Hwnd, hwndInsertAfter, x, y, cx, cy, fuFlags)); … … 1484 1492 WINDOWPOS wpos; 1485 1493 SWP swp, swpOld; 1486 ULONG parentHeight;1487 1494 1488 1495 //**************************** … … 1501 1508 //********************************************** 1502 1509 if(~fuFlags & (SWP_NOMOVE | SWP_NOSIZE)) { 1503 OSLibWinQueryWindowPos(OS2Hwnd, &swpOld); 1504 parentHeight = isChild() ? 1505 OSLibGetWindowHeight(getParent()->getOS2WindowHandle()) 1506 : OSLibQueryScreenHeight(); 1510 if (isChild()) 1511 { 1512 hParent = getParent()->getOS2WindowHandle(); 1513 OSLibWinQueryWindowPos(OS2Hwnd, &swpOld); 1514 } else 1515 OSLibWinQueryWindowPos(OS2HwndFrame, &swpOld); 1507 1516 } 1508 OSLibMapWINDOWPOStoSWP(&wpos, &swp, &swpOld, parentHeight);1517 OSLibMapWINDOWPOStoSWP(&wpos, &swp, &swpOld, hParent, OS2HwndFrame); 1509 1518 1510 1519 /* MapSWP can clear the SWP_MOVE and SWP_SIZE flags if the window is not
Note:
See TracChangeset
for help on using the changeset viewer.
