[COMCTL32] Checking size grip bounds in x-axis only

This commit is contained in:
Waritnan Sookbuntherng
2019-08-16 16:22:24 +02:00
committed by Mark Jansen
parent b9ddad0bbb
commit 76dfa2b284
+1 -4
View File
@@ -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;