Alex Henrie : user32: Minimize and maximize boxes can only appear when WS_SYSMENU is set.
Alexandre Julliard
julliard at winehq.org
Tue Jul 17 11:05:35 CDT 2012
Module: wine
Branch: master
Commit: c412d6f521e6d5f3cc28de677fc61c00a7a875ac
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c412d6f521e6d5f3cc28de677fc61c00a7a875ac
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Tue Jul 10 18:06:06 2012 -0600
user32: Minimize and maximize boxes can only appear when WS_SYSMENU is set.
---
dlls/user32/nonclient.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c
index 08ce674..bc7fcc0 100644
--- a/dlls/user32/nonclient.c
+++ b/dlls/user32/nonclient.c
@@ -576,8 +576,7 @@ LRESULT NC_HandleNCHitTest( HWND hwnd, POINT pt )
rect.top += GetSystemMetrics(SM_CYCAPTION) - 1;
if (!PtInRect( &rect, pt ))
{
- BOOL min_or_max_box = (style & WS_MAXIMIZEBOX) ||
- (style & WS_MINIMIZEBOX);
+ BOOL min_or_max_box = (style & WS_SYSMENU) && (style & (WS_MINIMIZEBOX|WS_MAXIMIZEBOX));
if (ex_style & WS_EX_LAYOUTRTL)
{
/* Check system menu */
More information about the wine-cvs
mailing list