[COMCTL32] Checking size grip bounds in x-axis only
authorWaritnan Sookbuntherng <lion328@hotmail.co.th>
Tue, 11 Dec 2018 15:25:16 +0000 (22:25 +0700)
committerMark Jansen <mark.jansen@reactos.org>
Fri, 16 Aug 2019 14:22:24 +0000 (16:22 +0200)
dll/win32/comctl32/status.c

index dd39f13..6ef04a6 100644 (file)
@@ -1023,10 +1023,7 @@ STATUSBAR_WMNCHitTest (const STATUS_INFO *infoPtr, INT x, INT y)
        pt.y = y;
        ScreenToClient (infoPtr->Self, &pt);
 
        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;
         {
             if (GetWindowLongW( infoPtr->Self, GWL_EXSTYLE ) & WS_EX_LAYOUTRTL) return HTBOTTOMLEFT;
            else return HTBOTTOMRIGHT;