Changeset 10015 for trunk/src/user32/win32wbasenonclient.cpp
- Timestamp:
- Apr 11, 2003, 5:45:13 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbasenonclient.cpp
r10013 r10015 1 /* $Id: win32wbasenonclient.cpp,v 1.5 1 2003-04-11 15:22:34sandervl Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.52 2003-04-11 15:45:13 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 530 530 { 531 531 /* Check system menu */ 532 if (dwStyle & WS_SYSMENU)532 if ((dwStyle & WS_SYSMENU) && !(dwExStyle & WS_EX_TOOLWINDOW)) 533 533 { 534 534 /* Check if there is an user icon */ … … 550 550 /* Check maximize box */ 551 551 /* In win95 there is automatically a Maximize button when there is a minimize one*/ 552 if ((dwStyle & WS_MAXIMIZEBOX)|| (dwStyle & WS_MINIMIZEBOX)) 552 //Testing in NT4 shows that tool windows never have a minimize or maximize button! 553 if (((dwStyle & WS_MAXIMIZEBOX) || (dwStyle & WS_MINIMIZEBOX)) && 554 !(dwExStyle & WS_EX_TOOLWINDOW)) 553 555 rect.right -= GetSystemMetrics(SM_CXSIZE) + 1; 554 556 if (pt.x > rect.right) return HTMAXBUTTON; … … 556 558 /* Check minimize box */ 557 559 /* In win95 there is automatically a Maximize button when there is a Maximize one*/ 558 if ((dwStyle & WS_MINIMIZEBOX)||(dwStyle & WS_MAXIMIZEBOX)) 560 //Testing in NT4 shows that tool windows never have a minimize or maximize button! 561 if (((dwStyle & WS_MINIMIZEBOX) || (dwStyle & WS_MAXIMIZEBOX)) && 562 !(dwExStyle & WS_EX_TOOLWINDOW)) 559 563 rect.right -= GetSystemMetrics(SM_CXSIZE) + 1; 560 564
Note:
See TracChangeset
for help on using the changeset viewer.