Changeset 7063 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Oct 15, 2001, 7:10:55 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r6401 r7063 1 /* $Id: oslibwin.cpp,v 1.10 8 2001-07-29 18:59:27sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.109 2001-10-15 17:09:03 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 157 157 } 158 158 159 #if 0 160 hwndControl = WinWindowFromID(hwndFrame, FID_SYSMENU); 161 if(hwndControl) { 162 swp[i].hwnd = hwndControl; 163 swp[i].hwndInsertBehind = HWND_TOP; 164 swp[i].x = pRect->xLeft; 165 swp[i].y = pRect->yBottom; 166 if(pRect->yTop - pRect->yBottom > minmaxheight) { 167 swp[i].y += pRect->yTop - pRect->yBottom - minmaxheight; 159 if(fOS2Look == OS2_APPEARANCE_SYSMENU) { 160 hwndControl = WinWindowFromID(hwndFrame, FID_SYSMENU); 161 if(hwndControl) { 162 swp[i].hwnd = hwndControl; 163 swp[i].hwndInsertBehind = HWND_TOP; 164 swp[i].x = pRect->xLeft; 165 swp[i].y = pRect->yBottom; 166 if(pRect->yTop - pRect->yBottom > minmaxheight) { 167 swp[i].y += pRect->yTop - pRect->yBottom - minmaxheight; 168 } 169 swp[i].cx = minmaxwidth/2; 170 swp[i].cy = minmaxheight;; 171 swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW; 172 dprintf(("FID_SYSMENU (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy)); 173 pRect->xLeft += minmaxwidth/2; 174 i++; 168 175 } 169 swp[i].cx = minmaxwidth/2; 170 swp[i].cy = minmaxheight;; 171 swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW; 172 dprintf(("FID_SYSMENU (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy)); 173 pRect->xLeft += minmaxwidth/2; 174 i++; 175 } 176 #else 176 } 177 else 177 178 if((dwStyle & WS_SYSMENU_W) && !(dwExStyle & WS_EX_TOOLWINDOW_W) && hSysMenuIcon) { 178 179 pRect->xLeft += minmaxwidth/2; 179 180 } 180 #endif 181 181 182 if((dwStyle & WS_CAPTION_W) == WS_CAPTION_W) { 182 183 hwndControl = WinWindowFromID(hwndFrame, FID_TITLEBAR);
Note:
See TracChangeset
for help on using the changeset viewer.