Changeset 1540 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Nov 1, 1999, 8:11:46 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/oslibwin.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r1523 r1540 1 /* $Id: oslibwin.cpp,v 1.4 0 1999-10-30 18:08:19 dengertExp $ */1 /* $Id: oslibwin.cpp,v 1.41 1999-11-01 19:11:40 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 50 50 //****************************************************************************** 51 51 HWND OSLibWinCreateWindow(HWND hwndParent, ULONG dwWinStyle, ULONG dwFrameStyle, 52 char *pszName, HWND Owner, ULONG f HWND_BOTTOM, HWND *hwndFrame,52 char *pszName, HWND Owner, ULONG fBottom, HWND *hwndFrame, 53 53 ULONG id) 54 54 { … … 69 69 ULONG dwClientStyle; 70 70 71 #if 072 // if(dwFrameStyle || hwndParent == HWND_DESKTOP) {73 dwClientStyle = dwWinStyle & ~(WS_TABSTOP | WS_GROUP | WS_CLIPSIBLINGS);74 75 dwFrameStyle |= FCF_NOBYTEALIGN;76 if (hwndParent == HWND_DESKTOP && dwFrameStyle & FCF_TITLEBAR)77 dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER;78 79 dwWinStyle &= ~(WS_CLIPCHILDREN | WS_CLIPSIBLINGS);80 81 *hwndFrame = WinCreateStdWindow(hwndParent, dwWinStyle,82 &dwFrameStyle, WIN32_STDCLASS,83 "", dwClientStyle, 0, id, &hwndClient);84 if(*hwndFrame) {85 if(pszName) {86 WinSetWindowText(*hwndFrame, pszName);87 }88 return hwndClient;89 }90 dprintf(("OSLibWinCreateWindow: (FRAME) WinCreateStdWindow failed (%x)", WinGetLastError(GetThreadHAB())));91 return 0;92 #else93 71 BOOL TopLevel = hwndParent == HWND_DESKTOP; 94 72 FRAMECDATA FCData = {sizeof (FRAMECDATA), 0, 0, 0}; … … 107 85 TopLevel ? WC_FRAME : WIN32_INNERFRAME, 108 86 pszName, dwWinStyle, 0, 0, 50, 30, 109 hwndParent, HWND_TOP, id, &FCData, NULL); 87 hwndParent, HWND_TOP, 88 id, &FCData, NULL); 110 89 if (*hwndFrame) { 111 90 hwndClient = WinCreateWindow (*hwndFrame, WIN32_STDCLASS, … … 114 93 if (hwndClient != NULLHANDLE) 115 94 WinSendMsg (*hwndFrame, WM_UPDATEFRAME, 0, 0); 95 116 96 return hwndClient; 117 97 } 118 98 dprintf(("OSLibWinCreateWindow: (FRAME) WinCreateStdWindow failed (%x)", WinGetLastError(GetThreadHAB()))); 119 99 return 0; 120 #endif121 122 #if 0123 }124 hwndClient = WinCreateWindow(hwndParent, WIN32_STDCLASS, pszName, dwWinStyle, 0, 0, 0, 0,125 Owner, (fHWND_BOTTOM) ? HWND_BOTTOM :HWND_TOP, 0, NULL,126 NULL);127 *hwndFrame = hwndClient;128 return hwndClient;129 #endif130 100 } 131 101 //****************************************************************************** … … 378 348 if(rc == 0) 379 349 dprintf(("WinShowWindow %x failed %x", hwnd, WinGetLastError(GetThreadHAB()))); 380 rc = WinSetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, fl);350 rc = WinSetWindowPos(hwnd, 0, 0, 0, 0, 0, fl); 381 351 if(rc == 0) 382 352 dprintf(("WinShowWindow %x failed %x", hwnd, WinGetLastError(GetThreadHAB())));
Note:
See TracChangeset
for help on using the changeset viewer.
