Changeset 323 for trunk/src/user32/new/oslibwin.cpp
- Timestamp:
- Jul 17, 1999, 5:23:38 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/oslibwin.cpp
r322 r323 1 /* $Id: oslibwin.cpp,v 1. 7 1999-07-17 12:49:40 cbratschiExp $ */1 /* $Id: oslibwin.cpp,v 1.8 1999-07-17 15:23:38 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 38 38 //****************************************************************************** 39 39 HWND OSLibWinCreateWindow(HWND hwndParent, ULONG dwWinStyle, ULONG dwFrameStyle, 40 char *pszName, ULONG x, ULONG y, ULONG cx, ULONG cy, 41 HWND Owner, ULONG fHWND_BOTTOM, HWND *hwndFrame) 40 char *pszName, HWND Owner, ULONG fHWND_BOTTOM, HWND *hwndFrame) 42 41 { 43 42 HWND hwndClient; 44 43 RECTL rectl; 45 44 45 if(pszName && *pszName == 0) { 46 pszName = NULL; 47 } 46 48 if(hwndParent == 0) { 47 49 hwndParent = HWND_DESKTOP; 48 }49 if(WinQueryWindowRect(hwndParent, &rectl) == TRUE) {50 y = OS2TOWIN32POINT(rectl.yTop - rectl.yBottom, y);51 50 } 52 51 if(dwFrameStyle) { … … 59 58 WinSetWindowText(*hwndFrame, pszName); 60 59 } 61 WinSetWindowPos(*hwndFrame, (fHWND_BOTTOM) ? HWND_BOTTOM :HWND_TOP,62 x, y, cx, cy, SWP_SIZE | SWP_MOVE);63 64 60 return hwndClient; 65 61 } … … 67 63 return 0; 68 64 } 69 hwndClient = WinCreateWindow(hwndParent, WIN32_STDCLASS, pszName, dwWinStyle, x, y, cx, cy,65 hwndClient = WinCreateWindow(hwndParent, WIN32_STDCLASS, pszName, dwWinStyle, 0, 0, 0, 0, 70 66 Owner, (fHWND_BOTTOM) ? HWND_BOTTOM :HWND_TOP, 0, NULL, 71 67 NULL); … … 83 79 if(dwStyle & WINWS_MINIMIZE) 84 80 *OSWinStyle |= WS_MINIMIZED; 81 //Done explicitely in CreateWindowExA 82 #if 0 85 83 if(dwStyle & WINWS_VISIBLE) 86 84 *OSWinStyle |= WS_VISIBLE; 85 #endif 87 86 if(dwStyle & WINWS_DISABLED) 88 87 *OSWinStyle |= WS_DISABLED; … … 178 177 LONG cy, ULONG fl) 179 178 { 179 RECTL rectl; 180 HWND hwndParent; 181 182 if(fl & SWP_MOVE) { 183 hwndParent = WinQueryWindow(hwnd, QW_PARENT); 184 if(WinQueryWindowRect(hwnd, &rectl)) { 185 y = OS2TOWIN32POINT(rectl.yTop - rectl.yBottom, y); 186 } 187 } 180 188 return WinSetWindowPos(hwnd, hwndInsertBehind, x, y, cx, cy, fl); 181 189 } … … 184 192 BOOL OSLibWinShowWindow(HWND hwnd, ULONG fl) 185 193 { 186 return WinSetWindowPos(hwnd, 0, 0, 0, 0, 0, fl); 194 BOOL rc; 195 196 if(fl & SWP_SHOW) { 197 rc = WinShowWindow(hwnd, TRUE); 198 } 199 if(rc == 0) 200 dprintf(("WinShowWindow %x failed %x", hwnd, WinGetLastError(GetThreadHAB()))); 201 rc = WinSetWindowPos(hwnd, 0, 0, 0, 0, 0, fl); 202 if(rc == 0) 203 dprintf(("WinShowWindow %x failed %x", hwnd, WinGetLastError(GetThreadHAB()))); 204 return rc; 187 205 } 188 206 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.