From: Waritnan Sookbuntherng Date: Tue, 11 Dec 2018 15:25:16 +0000 (+0700) Subject: [COMCTL32] Checking size grip bounds in x-axis only X-Git-Tag: 0.4.14-dev~338 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=76dfa2b284b03e276b91782eff69fcecdd72210c [COMCTL32] Checking size grip bounds in x-axis only --- diff --git a/dll/win32/comctl32/status.c b/dll/win32/comctl32/status.c index dd39f13f082..6ef04a66282 100644 --- a/dll/win32/comctl32/status.c +++ b/dll/win32/comctl32/status.c @@ -1023,10 +1023,7 @@ STATUSBAR_WMNCHitTest (const STATUS_INFO *infoPtr, INT x, INT y) pt.y = y; ScreenToClient (infoPtr->Self, &pt); - rect.left = rect.right - 13; - rect.top += 2; - - if (PtInRect (&rect, pt)) + if (pt.x >= rect.right - GetSystemMetrics(SM_CXVSCROLL)) { if (GetWindowLongW( infoPtr->Self, GWL_EXSTYLE ) & WS_EX_LAYOUTRTL) return HTBOTTOMLEFT; else return HTBOTTOMRIGHT;