Fixed scrolling of listview with a mouse wheel.
This commit is contained in:
parent
77d06fc629
commit
4d7e26f9a2
|
@ -7688,7 +7688,7 @@ static LRESULT LISTVIEW_GetFont(HWND hwnd)
|
||||||
* PARAMETER(S):
|
* PARAMETER(S):
|
||||||
* [I] HWND : window handle
|
* [I] HWND : window handle
|
||||||
* [I] INT : scroll code
|
* [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.
|
* or SB_THUMBTRACK.
|
||||||
* [I] HWND : scrollbar control window handle
|
* [I] HWND : scrollbar control window handle
|
||||||
*
|
*
|
||||||
|
@ -7754,6 +7754,7 @@ static LRESULT LISTVIEW_VScroll(HWND hwnd, INT nScrollCode, SHORT nCurrentPos,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SB_THUMBPOSITION:
|
||||||
case SB_THUMBTRACK:
|
case SB_THUMBTRACK:
|
||||||
scrollInfo.nPos = nCurrentPos;
|
scrollInfo.nPos = nCurrentPos;
|
||||||
if (scrollInfo.nPos > scrollInfo.nMax)
|
if (scrollInfo.nPos > scrollInfo.nMax)
|
||||||
|
@ -7851,6 +7852,7 @@ static LRESULT LISTVIEW_HScroll(HWND hwnd, INT nScrollCode, SHORT nCurrentPos,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SB_THUMBPOSITION:
|
||||||
case SB_THUMBTRACK:
|
case SB_THUMBTRACK:
|
||||||
scrollInfo.nPos = nCurrentPos;
|
scrollInfo.nPos = nCurrentPos;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue