comctl32: Return the correct hittest for the size grip in mirrored windows.
authorAlexandre Julliard <julliard@winehq.org>
Fri, 24 Sep 2010 13:37:16 +0000 (15:37 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 24 Sep 2010 13:45:55 +0000 (15:45 +0200)
dlls/comctl32/status.c

index 1b69ef2d053c83efc1a6e83a1ecc9af76a3dca95..eeaf299f6b34cb92b1be8b5873d77849fcc9abb9 100644 (file)
@@ -1047,7 +1047,10 @@ STATUSBAR_WMNCHitTest (const STATUS_INFO *infoPtr, INT x, INT y)
        rect.top += 2;
 
        if (PtInRect (&rect, pt))
-           return HTBOTTOMRIGHT;
+        {
+            if (GetWindowLongW( infoPtr->Self, GWL_EXSTYLE ) & WS_EX_LAYOUTRTL) return HTBOTTOMLEFT;
+           else return HTBOTTOMRIGHT;
+        }
     }
 
     return HTERROR;