Changeset 2435 for trunk/src/user32/new/win32wbasenonclient.cpp
- Timestamp:
- Jan 14, 2000, 2:16:59 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wbasenonclient.cpp
r2433 r2435 1 /* $Id: win32wbasenonclient.cpp,v 1. 5 2000-01-13 20:11:39sandervl Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.6 2000-01-14 13:16:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 234 234 { 235 235 case HTCAPTION: 236 SetActiveWindow(); 236 if (GetActiveWindow() != Win32Hwnd) 237 SetActiveWindow(); 238 237 239 if (GetActiveWindow() == Win32Hwnd) 238 240 SendInternalMessageA(WM_SYSCOMMAND,SC_MOVE+HTCAPTION,lParam); … … 353 355 LONG Win32BaseWindow::HandleNCCalcSize(BOOL calcValidRects,RECT *winRect) 354 356 { 355 RECT tmpRect = { 0, 0, 0, 0 } ,*clientRect;356 LONG result = WVR_ALIGNTOP | WVR_ALIGNLEFT;357 RECT tmpRect = { 0, 0, 0, 0 }; 358 LONG result = 0; 357 359 UINT style; 358 360 … … 364 366 if (style & CS_HREDRAW) result |= WVR_HREDRAW; 365 367 366 clientRect = &((NCCALCSIZE_PARAMS*)winRect)->rgrc[2];367 *clientRect = rectWindow;368 #if 1369 OffsetRect(clientRect, -clientRect->left, -clientRect->top);370 #else371 if(getParent()) {//in parent coordinates372 OffsetRect(clientRect, -clientRect->left, -clientRect->top);373 MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), (POINT *)clientRect, 2);374 }375 //else in screen coordinates (already in screen coordinates)376 #endif377 378 368 if(!(dwStyle & WS_MINIMIZE)) 379 369 { 380 370 AdjustRectOuter(&tmpRect,FALSE); 381 371 382 clientRect->left -= tmpRect.left;383 clientRect->top -= tmpRect.top;384 clientRect->right -= tmpRect.right;385 clientRect->bottom -= tmpRect.bottom;372 winRect->left -= tmpRect.left; 373 winRect->top -= tmpRect.top; 374 winRect->right -= tmpRect.right; 375 winRect->bottom -= tmpRect.bottom; 386 376 387 377 if (HAS_MENU()) 388 378 { 389 clientRect->top +=379 winRect->top += 390 380 MENU_GetMenuBarHeight(Win32Hwnd, 391 392 381 winRect->right - winRect->left, 382 -tmpRect.left, -tmpRect.top ) + 1; 393 383 } 394 384 395 385 SetRect (&tmpRect, 0, 0, 0, 0); 396 386 AdjustRectInner(&tmpRect); 397 clientRect->left -= tmpRect.left;398 clientRect->top -= tmpRect.top;399 clientRect->right -= tmpRect.right;400 clientRect->bottom -= tmpRect.bottom;387 winRect->left -= tmpRect.left; 388 winRect->top -= tmpRect.top; 389 winRect->right -= tmpRect.right; 390 winRect->bottom -= tmpRect.bottom; 401 391 } 402 392
Note:
See TracChangeset
for help on using the changeset viewer.