From 0edb0233a46e7105cb8c88093ca07c741123c8c3 Mon Sep 17 00:00:00 2001 From: Daniel Jelinski Date: Fri, 21 Sep 2012 21:58:43 +0200 Subject: [PATCH] comctl32: Use GetWindowLong to check for scrollbar. dwStyle is updated only in WM_STYLECHANGED, which is not sent when displaying and hiding scrollbars. --- dlls/comctl32/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 7a11557439a..0ef8bc4a48e 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -10878,7 +10878,7 @@ static void LISTVIEW_UpdateSize(LISTVIEW_INFO *infoPtr) * The "2" is there to mimic the native control. I think it may be * related to either padding or edges. (GLA 7/2002) */ - if (!(infoPtr->dwStyle & WS_HSCROLL)) + if (!(GetWindowLongW(infoPtr->hwndSelf, GWL_STYLE) & WS_HSCROLL)) infoPtr->rcList.bottom -= GetSystemMetrics(SM_CYHSCROLL); infoPtr->rcList.bottom = max (infoPtr->rcList.bottom - 2, 0); }