- Timestamp:
- Apr 11, 2003, 5:22:34 PM (22 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r9943 r10013 1 /* $Id: oslibwin.cpp,v 1.14 1 2003-03-27 11:02:26sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.142 2003-04-11 15:22:33 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 62 62 char *pszName, HWND Owner, ULONG fHWND_BOTTOM, 63 63 ULONG id, BOOL fTaskList,BOOL fShellPosition, 64 intclassStyle, HWND *hwndFrame)64 DWORD classStyle, HWND *hwndFrame) 65 65 { 66 66 HWND hwndClient; … … 101 101 Owner, (fHWND_BOTTOM) ? HWND_BOTTOM : HWND_TOP, 102 102 id, (PVOID)&FCData, NULL); 103 103 104 if(fOS2Look && *hwndFrame) { 104 105 FCData.flCreateFlags = dwOSFrameStyle; … … 142 143 *OSWinStyle |= WS_TOPMOST; 143 144 144 if(fOS2Look) { 145 //WS_EX_TOOLWINDOW is incompatible with the OS2Look (titlebar thinner + smaller font) 146 if(fOS2Look && !(dwExStyle & WS_EX_TOOLWINDOW_W)) 147 { 145 148 if((dwStyle & WS_CAPTION_W) == WS_CAPTION_W) { 146 149 *OSFrameStyle = FCF_TITLEBAR; … … 176 179 177 180 dprintf(("OSLibWinPositionFrameControls %x (%x,%x) %x %d", hwndFrame, dwStyle, dwExStyle, hSysMenuIcon, drawCloseButton)); 181 182 //WS_EX_TOOLWINDOW is incompatible with the OS2Look (titlebar thinner + smaller font) 183 if(dwExStyle & WS_EX_TOOLWINDOW_W) { 184 DebugInt3(); 185 return FALSE; 186 } 178 187 179 188 if(minmaxwidth == 0) { … … 1075 1084 dwWinStyle &= ~WS_MAXIMIZED; 1076 1085 1077 if(fOS2Look) { 1086 //WS_EX_TOOLWINDOW is incompatible with the OS2Look (titlebar thinner + smaller font) 1087 if(fOS2Look && !(dwExStyle & WS_EX_TOOLWINDOW_W)) { 1078 1088 ULONG OSFrameStyle = 0; 1079 1089 SWP rc1,rc2,rc3; … … 1164 1174 1165 1175 if(dwWinStyle != dwOldWinStyle) { 1166 1167 1176 dprintf(("Setting new window U long")); 1177 WinSetWindowULong(hwndFrame, QWL_STYLE, dwWinStyle); 1168 1178 } 1169 1179 -
trunk/src/user32/oslibwin.h
r9943 r10013 1 /* $Id: oslibwin.h,v 1.7 4 2003-03-27 11:02:26sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.75 2003-04-11 15:22:33 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 44 44 char *pszName, HWND Owner, ULONG fBottom, 45 45 ULONG id, BOOL fTaskList,BOOL fShellPosition, 46 intclassStyle, HWND *hwndFrame);46 DWORD classStyle, HWND *hwndFrame); 47 47 48 48 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG dwExStyle, ULONG *OSWinStyle, -
trunk/src/user32/win32wbase.cpp
r9953 r10013 1 /* $Id: win32wbase.cpp,v 1.36 5 2003-03-29 16:38:00sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.366 2003-04-11 15:22:33 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 1390 1390 } 1391 1391 #endif 1392 if(fOS2Look && ((dwStyle & WS_CAPTION) == WS_CAPTION)) 1392 //WS_EX_TOOLWINDOW is incompatible with the OS2Look (titlebar thinner + smaller font) 1393 if(fOS2Look && ((dwStyle & WS_CAPTION) == WS_CAPTION) && !(dwExStyle & WS_EX_TOOLWINDOW)) 1393 1394 { 1394 1395 RECT rect = {0}; -
trunk/src/user32/win32wbasenonclient.cpp
r9871 r10013 1 /* $Id: win32wbasenonclient.cpp,v 1.5 0 2003-02-28 09:56:00sandervl Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.51 2003-04-11 15:22:34 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 906 906 HBITMAP memBmp,oldBmp; 907 907 908 if(fOS2Look) { 908 //WS_EX_TOOLWINDOW is incompatible with the OS2Look (titlebar thinner + smaller font) 909 if(fOS2Look && !(dwExStyle & WS_EX_TOOLWINDOW)) { 909 910 //Note: If no class icon *and* WS_EX_DLGMODALFRAME -> no system menu 910 911 if((dwStyle & WS_SYSMENU) && !(dwExStyle & WS_EX_TOOLWINDOW) && … … 1014 1015 } 1015 1016 1016 if ((dwStyle & WS_MAXIMIZEBOX) || (dwStyle & WS_MINIMIZEBOX)) 1017 //Testing in NT4 shows that tool windows never have a minimize or maximize button! 1018 if (((dwStyle & WS_MAXIMIZEBOX) || (dwStyle & WS_MINIMIZEBOX)) && 1019 !(dwExStyle & WS_EX_TOOLWINDOW)) 1017 1020 { 1018 1021 /* In win95 the two buttons are always there */
Note:
See TracChangeset
for help on using the changeset viewer.