From: Alexandre Julliard Date: Fri, 24 Sep 2010 13:37:16 +0000 (+0200) Subject: comctl32: Return the correct hittest for the size grip in mirrored windows. X-Git-Tag: 1.3.3-alt1.1~1^2~3^2~14 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=af200111b472e5daaf04ede61fafa357bf58683b;p=wine%2Feterwine.git comctl32: Return the correct hittest for the size grip in mirrored windows. --- diff --git a/dlls/comctl32/status.c b/dlls/comctl32/status.c index 1b69ef2d05..eeaf299f6b 100644 --- a/dlls/comctl32/status.c +++ b/dlls/comctl32/status.c @@ -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;