From 4d7e26f9a20604a1f91163b6f5b29915b098fb8d Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Wed, 4 Apr 2001 18:25:46 +0000 Subject: [PATCH] Fixed scrolling of listview with a mouse wheel. --- dlls/comctl32/listview.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index b5fb2ceeea8..78f6bb25a3c 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -7688,7 +7688,7 @@ static LRESULT LISTVIEW_GetFont(HWND hwnd) * PARAMETER(S): * [I] HWND : window handle * [I] INT : scroll code - * [I] SHORT : current scroll position if scroll code is SB_THIMBPOSITION + * [I] SHORT : current scroll position if scroll code is SB_THUMBPOSITION * or SB_THUMBTRACK. * [I] HWND : scrollbar control window handle * @@ -7754,6 +7754,7 @@ static LRESULT LISTVIEW_VScroll(HWND hwnd, INT nScrollCode, SHORT nCurrentPos, } break; + case SB_THUMBPOSITION: case SB_THUMBTRACK: scrollInfo.nPos = nCurrentPos; if (scrollInfo.nPos > scrollInfo.nMax) @@ -7851,6 +7852,7 @@ static LRESULT LISTVIEW_HScroll(HWND hwnd, INT nScrollCode, SHORT nCurrentPos, } break; + case SB_THUMBPOSITION: case SB_THUMBTRACK: scrollInfo.nPos = nCurrentPos;