Changeset 2458 for trunk/src/user32/new/win32wbasenonclient.cpp
- Timestamp:
- Jan 16, 2000, 7:17:13 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wbasenonclient.cpp
r2452 r2458 1 /* $Id: win32wbasenonclient.cpp,v 1.1 2 2000-01-15 17:27:20 sandervlExp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.13 2000-01-16 18:17:13 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 317 317 //****************************************************************************** 318 318 //****************************************************************************** 319 VOID Win32BaseWindow::AdjustRectOuter(LPRECT rect,BOOL menu) 320 { 321 if(dwStyle & WS_ICONIC) return; 322 319 VOID Win32BaseWindow::AdjustMaximizedRect(LPRECT rect) 320 { 323 321 /* Decide if the window will be managed (see CreateWindowEx) */ 324 322 //if (!WindowNeedsWMBorder()) //CB: check Options.managed … … 332 330 if (HAS_THINFRAME( dwStyle )) 333 331 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 332 } 333 } 334 //****************************************************************************** 335 //****************************************************************************** 336 VOID Win32BaseWindow::AdjustRectOuter(LPRECT rect,BOOL menu) 337 { 338 if(dwStyle & WS_ICONIC) return; 339 340 /* Decide if the window will be managed (see CreateWindowEx) */ 341 //if (!WindowNeedsWMBorder()) //CB: check Options.managed 342 { 343 if (HAS_THICKFRAME(dwStyle,dwExStyle )) 344 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) ); 345 else 346 if (HAS_DLGFRAME( dwStyle, dwExStyle )) 347 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 348 else 349 if (HAS_THINFRAME( dwStyle )) 350 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 334 351 335 352 if ((dwStyle & WS_CAPTION) == WS_CAPTION) … … 367 384 LONG result = 0; 368 385 UINT style; 386 387 dprintf(("Default WM_NCCALCSIZE handler")); 369 388 370 389 if (!calcValidRects) return 0; … … 408 427 RECT rect = rectWindow; 409 428 429 if (dwStyle & WS_MINIMIZE) return HTCAPTION; 430 410 431 if (!PtInRect(&rect,pt)) return HTNOWHERE; 411 412 if (dwStyle & WS_MINIMIZE) return HTCAPTION;413 432 414 433 if (!(flags & WIN_MANAGED)) … … 1197 1216 LONG Win32BaseWindow::HandleNCRButtonUp(WPARAM wParam,LPARAM lParam) 1198 1217 { 1199 if (wParam == HTCAPTION) 1200 { 1201 if (GetActiveWindow() != Win32Hwnd) 1218 switch(wParam) 1219 { 1220 case HTCAPTION: 1221 if (GetActiveWindow() != Win32Hwnd) 1202 1222 SetActiveWindow(); 1203 1223 1204 if ((GetActiveWindow() == Win32Hwnd) && (dwStyle & WS_SYSMENU)) 1205 { 1206 SendInternalMessageA(WM_SYSCOMMAND,SC_MOUSEMENU+HTCAPTION,lParam); 1207 } 1224 if ((GetActiveWindow() == Win32Hwnd) && (dwStyle & WS_SYSMENU)) 1225 { 1226 SendInternalMessageA(WM_SYSCOMMAND,SC_MOUSEMENU+HTCAPTION,lParam); 1227 } 1228 break; 1229 1230 default: 1231 break; 1208 1232 } 1209 1233 … … 1225 1249 case SC_SIZE: 1226 1250 { 1227 DWORD flags = 0; 1251 DWORD flags; 1252 1253 if (dwStyle & WS_MAXIMIZE) break; 1228 1254 1229 1255 switch ((wParam & 0xF)+2) … … 1260 1286 flags = TFOS_BOTTOM | TFOS_RIGHT; 1261 1287 break; 1288 1289 default: 1290 flags = TFOS_BOTTOM | TFOS_RIGHT; 1291 break; 1262 1292 } 1263 1293 if (flags) FrameTrackFrame(this,flags); … … 1266 1296 1267 1297 case SC_MOVE: 1298 if (dwStyle & WS_MAXIMIZE) break; 1268 1299 FrameTrackFrame(this,TFOS_MOVE); 1269 1300 break;
Note:
See TracChangeset
for help on using the changeset viewer.