Changeset 1376 for trunk/src/user32/win32wbasepos.cpp
- Timestamp:
- Oct 20, 1999, 3:46:29 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbasepos.cpp
r1336 r1376 1 /* $Id: win32wbasepos.cpp,v 1. 3 1999-10-17 15:46:10sandervl Exp $ */1 /* $Id: win32wbasepos.cpp,v 1.4 1999-10-20 13:46:28 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (nonclient/position methods) … … 186 186 */ 187 187 void Win32BaseWindow::GetMinMaxInfo(POINT *maxSize, POINT *maxPos, 188 POINT *minTrack, POINT *maxTrack )188 POINT *minTrack, POINT *maxTrack ) 189 189 { 190 190 MINMAXINFO MinMax; … … 370 370 if ((style & WS_CAPTION) == WS_CAPTION) 371 371 { 372 373 374 375 372 if (exStyle & WS_EX_TOOLWINDOW) 373 rect->top -= GetSystemMetrics(SM_CYSMCAPTION); 374 else 375 rect->top -= GetSystemMetrics(SM_CYCAPTION); 376 376 } 377 377 // } 378 378 379 379 if (menu) 380 380 rect->top -= GetSystemMetrics(SM_CYMENU); 381 381 } 382 382 /****************************************************************************** … … 410 410 411 411 if (exStyle & WS_EX_CLIENTEDGE) 412 412 InflateRect(rect, GetSystemMetrics(SM_CXEDGE), GetSystemMetrics(SM_CYEDGE)); 413 413 414 414 if (exStyle & WS_EX_STATICEDGE) 415 415 InflateRect(rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 416 416 417 417 if (style & WS_VSCROLL) rect->right += GetSystemMetrics(SM_CXVSCROLL); 418 418 if (style & WS_HSCROLL) rect->bottom += GetSystemMetrics(SM_CYHSCROLL); 419 419 } 420 /*********************************************************************** 421 * WINPOS_HandleWindowPosChanging16 422 * 423 * Default handling for a WM_WINDOWPOSCHANGING. Called from DefWindowProc(). 424 */ 425 LONG Win32BaseWindow::HandleWindowPosChanging(WINDOWPOS *winpos) 426 { 427 POINT maxSize, minTrack; 428 429 if (winpos->flags & SWP_NOSIZE) 430 return 1; 431 432 if ((getStyle() & WS_THICKFRAME) || 433 ((getStyle() & (WS_POPUP | WS_CHILD)) == 0)) 434 { 435 GetMinMaxInfo(&maxSize, NULL, &minTrack, NULL ); 436 if (maxSize.x < winpos->cx) winpos->cx = maxSize.x; 437 if (maxSize.y < winpos->cy) winpos->cy = maxSize.y; 438 if (!(getStyle() & WS_MINIMIZE)) 439 { 440 if (winpos->cx < minTrack.x ) winpos->cx = minTrack.x; 441 if (winpos->cy < minTrack.y ) winpos->cy = minTrack.y; 442 } 443 return 0; 444 } 445 return 1; 446 } 420 447 //****************************************************************************** 421 448 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.