Make GetScrollInfo return scroll pos when program requests thumb pos

outside drag operation.
This commit is contained in:
Gerard Patel 1999-07-03 11:52:38 +00:00 committed by Alexandre Julliard
parent 42ab9a5c3f
commit ed941a101f
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ BOOL WINAPI GetScrollInfo(
if (info->fMask & SIF_PAGE) info->nPage = infoPtr->Page; if (info->fMask & SIF_PAGE) info->nPage = infoPtr->Page;
if (info->fMask & SIF_POS) info->nPos = infoPtr->CurVal; if (info->fMask & SIF_POS) info->nPos = infoPtr->CurVal;
if ((info->fMask & SIF_TRACKPOS) && (info->cbSize == sizeof(*info))) 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) if (info->fMask & SIF_RANGE)
{ {
info->nMin = infoPtr->MinVal; info->nMin = infoPtr->MinVal;