From ed941a101f2cc25e0d10a2d0f1e1eec3b9be6e20 Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Sat, 3 Jul 1999 11:52:38 +0000 Subject: [PATCH] Make GetScrollInfo return scroll pos when program requests thumb pos outside drag operation. --- controls/scroll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/scroll.c b/controls/scroll.c index fc1fb92ad7b..59c6914fa59 100644 --- a/controls/scroll.c +++ b/controls/scroll.c @@ -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; -- 2.11.4.GIT