Changeset 9345 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Oct 15, 2002, 11:18:12 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r9256 r9345 1 /* $Id: oslibwin.cpp,v 1.12 8 2002-09-17 10:24:02sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.129 2002-10-15 09:18:10 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 103 103 if(fOS2Look && *hwndFrame) { 104 104 FCData.flCreateFlags = dwOSFrameStyle; 105 // FCData.flCreateFlags = FCF_TITLEBAR|FCF_SYSMENU|FCF_MINMAX;106 105 WinCreateFrameControls(*hwndFrame, &FCData, NULL); 107 106 } … … 156 155 //****************************************************************************** 157 156 BOOL OSLibWinPositionFrameControls(HWND hwndFrame, RECTLOS2 *pRect, DWORD dwStyle, 158 DWORD dwExStyle, HICON hSysMenuIcon )157 DWORD dwExStyle, HICON hSysMenuIcon, BOOL drawCloseButton) 159 158 { 160 159 SWP swp[3]; … … 186 185 i++; 187 186 } 187 188 188 } 189 189 else … … 209 209 swp[i].cx -= minmaxwidth/2; 210 210 } 211 //there is no close button in warp 3 212 if((dwStyle & WS_SYSMENU_W) && !fVersionWarp3) { 211 //there is no close button in warp 3 and sometimes we do not 212 //have close button as well 213 if((dwStyle & WS_SYSMENU_W) && !fVersionWarp3 && drawCloseButton) { 213 214 swp[i].cx -= minmaxwidth/2; 214 215 } … … 238 239 swp[i].cx += minmaxwidth/2; 239 240 } 240 //there is no close button in warp 3 241 if((dwStyle & WS_SYSMENU_W) && !fVersionWarp3) { 241 //there is no close button in warp 3 and sometimes we do not have 242 //close button as well 243 if((dwStyle & WS_SYSMENU_W) && !fVersionWarp3 && drawCloseButton) { 242 244 swp[i].cx += minmaxwidth/2; 243 245 } … … 975 977 // the first entry returned is always the window list itself 976 978 if (WinQuerySwitchList(0, &swblk, sizeof(SWBLOCK)) > 0) 977 WinSetActiveWindow(HWND_DESKTOP, swblk.aswentry[0].swctl.hwnd); 979 WinSetActiveWindow(HWND_DESKTOP, swblk.aswentry[0].swctl.hwnd); 980 // WinShowWindow(swblk.aswentry[0].swctl.hwnd, TRUE); 978 981 } 979 982 //****************************************************************************** … … 1082 1085 if (WinQueryActiveWindow(HWND_DESKTOP) == hwndFrame) 1083 1086 WinSendMsg(WinWindowFromID(hwndFrame, FID_TITLEBAR), TBM_SETHILITE, (MPARAM)1, 0); 1087 1084 1088 } 1085 1089 } // os2look 1090 } 1091 1092 //****************************************************************************** 1093 //****************************************************************************** 1094 BOOL OSLibChangeCloseButtonState(HWND hwndFrame, BOOL State) 1095 { 1096 return WinEnableMenuItem(WinWindowFromID(hwndFrame, FID_SYSMENU), SC_CLOSE, State); 1086 1097 } 1087 1098 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.