Skip to content
Snippets Groups Projects
Commit ed941a10 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard
Browse files

Make GetScrollInfo return scroll pos when program requests thumb pos

outside drag operation.
parent 42ab9a5c
No related branches found
No related tags found
No related merge requests found
......@@ -1251,7 +1251,7 @@ BOOL WINAPI GetScrollInfo(
if (info->fMask & SIF_PAGE) info->nPage = infoPtr->Page;
if (info->fMask & SIF_POS) info->nPos = infoPtr->CurVal;
if ((info->fMask & SIF_TRACKPOS) && (info->cbSize == sizeof(*info)))
info->nTrackPos = (SCROLL_TrackingWin==hwnd) ? SCROLL_TrackingVal : 0;
info->nTrackPos = (SCROLL_TrackingWin==hwnd) ? SCROLL_TrackingVal : infoPtr->CurVal;
if (info->fMask & SIF_RANGE)
{
info->nMin = infoPtr->MinVal;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment