From a99ec32abd683027d268d2d620bf85c79da07d1d Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sun, 8 Feb 2004 15:13:22 +0000 Subject: [PATCH] - Minor correction to hit testing algorithm svn path=/trunk/; revision=8091 --- reactos/lib/user32/windows/nonclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/nonclient.c b/reactos/lib/user32/windows/nonclient.c index 0d181c569ed..638dcd80eff 100644 --- a/reactos/lib/user32/windows/nonclient.c +++ b/reactos/lib/user32/windows/nonclient.c @@ -667,7 +667,7 @@ DefWndNCHitTest(HWND hWnd, POINT Point) return HTBORDER; } - if (Style & WS_CAPTION) + if ((Style & WS_CAPTION) == WS_CAPTION) { if (ExStyle & WS_EX_TOOLWINDOW) WindowRect.top += GetSystemMetrics(SM_CYSMCAPTION); @@ -697,7 +697,7 @@ DefWndNCHitTest(HWND hWnd, POINT Point) return HTMAXBUTTON; if (Style & WS_MINIMIZEBOX) WindowRect.right -= GetSystemMetrics(SM_CXSIZE); - if (Point.x >= WindowRect.right) + if (Point.x >= WindowRect.right) return HTMINBUTTON; return HTCAPTION; }