Changeset 1281 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Oct 14, 1999, 11:22:43 AM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/oslibwin.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r1265 r1281 1 /* $Id: oslibwin.cpp,v 1.2 6 1999-10-13 14:24:25sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.27 1999-10-14 09:22:40 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 48 48 HWND hwndClient; 49 49 50 if(dwFrameStyle) 51 dprintf(("FRAME: WinCreateWindow %x %x %x %s", hwndParent, dwWinStyle, dwFrameStyle, pszName)); 52 else dprintf(("WinCreateWindow %x %x %x %s", hwndParent, dwWinStyle, dwFrameStyle, pszName)); 50 dprintf(("WinCreateWindow %x %x %x %s", hwndParent, dwWinStyle, dwFrameStyle, pszName)); 53 51 54 52 if(pszName && *pszName == 0) { … … 62 60 } 63 61 64 if(dwFrameStyle || hwndParent == HWND_DESKTOP) {65 ULONG dwClientStyle; 66 62 ULONG dwClientStyle; 63 64 // if(dwFrameStyle || hwndParent == HWND_DESKTOP) { 67 65 dwClientStyle = dwWinStyle & ~(WS_TABSTOP | WS_GROUP); 68 // if(pszName)69 // dwFrameStyle |= FCF_TITLEBAR;70 66 71 67 dwFrameStyle |= FCF_NOBYTEALIGN; 72 if (hwndParent == HWND_DESKTOP) dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER; 68 if (hwndParent == HWND_DESKTOP && dwFrameStyle & FCF_TITLEBAR) 69 dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER; 70 73 71 dwWinStyle &= ~WS_CLIPCHILDREN; 74 72 … … 84 82 dprintf(("OSLibWinCreateWindow: (FRAME) WinCreateStdWindow failed (%x)", WinGetLastError(GetThreadHAB()))); 85 83 return 0; 84 #if 0 86 85 } 87 86 hwndClient = WinCreateWindow(hwndParent, WIN32_STDCLASS, pszName, dwWinStyle, 0, 0, 0, 0, … … 90 89 *hwndFrame = hwndClient; 91 90 return hwndClient; 91 #endif 92 92 } 93 93 //****************************************************************************** … … 144 144 if(dwStyle & WS_BORDER_W) 145 145 { 146 *OSFrameStyle |= FCF_ SIZEBORDER;146 *OSFrameStyle |= FCF_BORDER; 147 147 *borderHeight = *borderWidth = 1; 148 148 } … … 182 182 } 183 183 184 //Clear certain frame bits when the window doesn't have a titlebar 185 if(!(*OSFrameStyle & FCF_TITLEBAR)) { 186 *OSFrameStyle &= ~(FCF_MINBUTTON|FCF_MAXBUTTON|FCF_SYSMENU); 187 } 184 188 return TRUE; 185 189 }
Note:
See TracChangeset
for help on using the changeset viewer.
