Changeset 5951 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Jun 10, 2001, 2:05:41 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r5950 r5951 1 /* $Id: win32wbase.cpp,v 1.26 1 2001-06-10 09:19:58sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.262 2001-06-10 12:05:40 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 469 469 teb->o.odin.newWindow = (ULONG)this; 470 470 471 DWORD dwOSWinStyle ;472 473 OSLibWinConvertStyle(dwStyle,dwExStyle,&dwOSWinStyle );471 DWORD dwOSWinStyle, dwOSFrameStyle; 472 473 OSLibWinConvertStyle(dwStyle,dwExStyle,&dwOSWinStyle, &dwOSFrameStyle); 474 474 475 475 OS2Hwnd = OSLibWinCreateWindow((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP, 476 dwOSWinStyle, (char *)windowNameA,476 dwOSWinStyle, dwOSFrameStyle, (char *)windowNameA, 477 477 (owner) ? owner->getOS2WindowHandle() : ((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP), 478 478 (hwndLinkAfter == HWND_BOTTOM) ? TRUE : FALSE, … … 582 582 windowNameA[0] = 0; 583 583 } 584 } 585 if(fOS2Look) { 586 OSLibWinSetTitleBarText(OS2HwndFrame, windowNameA); 584 587 } 585 588 } … … 1202 1205 } 1203 1206 #endif 1207 if(fOS2Look && ((dwStyle & WS_CAPTION) == WS_CAPTION)) 1208 { 1209 RECT rect = {0}; 1210 int height = getWindowHeight(); 1211 RECTLOS2 rectOS2; 1212 1213 AdjustRectOuter(&rect, FALSE); 1214 1215 rect.left = -rect.left; 1216 rect.top = rect.bottom - rect.top; 1217 rect.right = rectWindow.right - rectWindow.left - rect.right; 1218 1219 rectOS2.xLeft = rect.left; 1220 rectOS2.xRight = rect.right; 1221 rectOS2.yBottom = height - rect.top; 1222 rectOS2.yTop = height - rect.bottom; 1223 OSLibWinPositionFrameControls(getOS2FrameWindowHandle(), &rectOS2); 1224 } 1204 1225 return rc; 1205 1226 } … … 1423 1444 if(hTaskList) { 1424 1445 OSLibWinChangeTaskList(hTaskList, OS2HwndFrame, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 1446 if(fOS2Look) { 1447 OSLibWinSetTitleBarText(OS2HwndFrame, getWindowNameA()); 1448 } 1425 1449 } 1426 1450 } … … 1913 1937 if(hTaskList) { 1914 1938 OSLibWinChangeTaskList(hTaskList, OS2HwndFrame, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 1939 if(fOS2Look) { 1940 OSLibWinSetTitleBarText(OS2HwndFrame, getWindowNameA()); 1941 } 1915 1942 } 1916 1943 } … … 2766 2793 } 2767 2794 else { 2795 if(newparent) RELEASE_WNDOBJ(newparent); 2796 2768 2797 setParent(windowDesktop); 2798 windowDesktop->addRef(); 2769 2799 windowDesktop->addChild(this); 2770 2800 OSLibWinSetParent(getOS2FrameWindowHandle(), OSLIB_HWND_DESKTOP); … … 3651 3681 if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) { 3652 3682 if(window) { 3653 dprintf(("addRef %x; refcount %d", hwnd, window->getRefCount()+1));3683 //// dprintf(("addRef %x; refcount %d", hwnd, window->getRefCount()+1)); 3654 3684 window->addRef(); 3655 3685 }
Note:
See TracChangeset
for help on using the changeset viewer.