Changeset 5969 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Jun 12, 2001, 10:02:35 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r5951 r5969 1 /* $Id: oslibwin.cpp,v 1.9 7 2001-06-10 12:05:38sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.98 2001-06-12 08:02:35 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 141 141 HWND hwndControl; 142 142 int i = 0; 143 static int minmaxwidth = 0; 143 static int minmaxwidth = 0; 144 static int minmaxheight = 0; 144 145 145 146 if(minmaxwidth == 0) { 146 minmaxwidth = WinQuerySysValue(HWND_DESKTOP, SV_CXMINMAXBUTTON); 147 minmaxwidth = WinQuerySysValue(HWND_DESKTOP, SV_CXMINMAXBUTTON); 148 minmaxheight = WinQuerySysValue(HWND_DESKTOP, SV_CYMINMAXBUTTON); 147 149 } 148 150 … … 153 155 swp[i].x = pRect->xLeft; 154 156 swp[i].y = pRect->yBottom; 157 if(pRect->yTop - pRect->yBottom > minmaxheight) { 158 swp[i].y += pRect->yTop - pRect->yBottom - minmaxheight; 159 } 155 160 swp[i].cx = minmaxwidth/2; 156 swp[i].cy = pRect->yTop - pRect->yBottom;161 swp[i].cy = minmaxheight;; 157 162 swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW; 158 pRect->xLeft += swp[i].cx; 163 dprintf(("FID_SYSMENU (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy)); 164 pRect->xLeft += minmaxwidth/2; 159 165 i++; 160 166 } … … 167 173 swp[i].cx = pRect->xRight - pRect->xLeft; 168 174 if(WinWindowFromID(hwndFrame, FID_MINMAX)) { 169 swp[i].cx -= minmaxwidth - minmaxwidth/2;175 swp[i].cx -= (minmaxwidth + minmaxwidth/2); 170 176 } 171 177 swp[i].cy = pRect->yTop - pRect->yBottom; 172 178 swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW; 179 dprintf(("FID_TITLEBAR (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy)); 173 180 pRect->xLeft += swp[i].cx; 174 181 i++; … … 180 187 swp[i].x = pRect->xLeft; 181 188 swp[i].y = pRect->yBottom; 189 if(pRect->yTop - pRect->yBottom > minmaxheight) { 190 swp[i].y += pRect->yTop - pRect->yBottom - minmaxheight; 191 } 182 192 swp[i].cx = minmaxwidth + minmaxwidth/2; 183 swp[i].cy = pRect->yTop - pRect->yBottom;193 swp[i].cy = minmaxheight; 184 194 swp[i].fl = SWP_SIZE | SWP_MOVE | SWP_SHOW; 195 dprintf(("FID_MINMAX (%d,%d)(%d,%d)", swp[i].x, swp[i].y, swp[i].cx, swp[i].cy)); 185 196 pRect->xLeft += swp[i].cx; 186 197 i++;
Note:
See TracChangeset
for help on using the changeset viewer.