Changeset 397 for trunk/src/user32/new/oslibwin.cpp
- Timestamp:
- Jul 26, 1999, 11:01:34 AM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/new/oslibwin.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/oslibwin.cpp
r385 r397 1 /* $Id: oslibwin.cpp,v 1. 19 1999-07-24 14:01:44 sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.20 1999-07-26 09:01:34 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 48 48 pszName = NULL; 49 49 } 50 if(hwndParent == 0) {50 if(hwndParent == OSLIB_HWND_DESKTOP) { 51 51 hwndParent = HWND_DESKTOP; 52 52 } 53 if(Owner == OSLIB_HWND_DESKTOP) { 54 Owner = HWND_DESKTOP; 55 } 56 53 57 if(dwFrameStyle) { 54 58 dwWinStyle &= ~WS_CLIPCHILDREN; //invalid style according to docs … … 56 60 dwFrameStyle |= FCF_TITLEBAR; 57 61 62 dwFrameStyle |= FCF_TASKLIST; 58 63 *hwndFrame = WinCreateStdWindow(hwndParent, dwWinStyle, 59 64 &dwFrameStyle, WIN32_STDCLASS, … … 76 81 //****************************************************************************** 77 82 //****************************************************************************** 78 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG *OSWinStyle, ULONG *OSFrameStyle)83 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG dwExStyle, ULONG *OSWinStyle, ULONG *OSFrameStyle) 79 84 { 80 85 *OSWinStyle = 0; … … 121 126 *OSFrameStyle |= FCF_MAXBUTTON; 122 127 128 if(dwExStyle & WINWS_EX_DLGMODALFRAME) 129 *OSFrameStyle |= FCF_DLGBORDER; 130 123 131 return TRUE; 124 132 } … … 217 225 { 218 226 HWND hwndParent = hwndInsertBehind; 219 220 if(fl & SWP_MOVE) { 227 BOOL rc; 228 229 if(fl & SWP_MOVE) { 221 230 switch(hwndParent) 222 231 { … … 227 236 } 228 237 y = MapOS2ToWin32Y(hwndParent, cy, y); 229 } 230 dprintf(("WinSetWindowPos %x %x %d %d %d %d %x", hwnd, hwndInsertBehind, x, y, cx, cy, fl)); 231 return WinSetWindowPos(hwnd, hwndInsertBehind, x, y, cx, cy, fl); 238 } 239 rc = WinSetWindowPos(hwnd, hwndInsertBehind, x, y, cx, cy, fl); 240 dprintf(("WinSetWindowPos %x %x %d %d %d %d %x returned %d (%x)", hwnd, hwndInsertBehind, x, y, cx, cy, fl, rc, WinGetLastError(GetThreadHAB()))); 241 return rc; 232 242 } 233 243 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.
