Make GetScrollInfo return scroll pos when program requests thumb pos
outside drag operation.
This commit is contained in:
parent
42ab9a5c3f
commit
ed941a101f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue