CScrollBar::GetScrollPos

Call this member function to retrieve the current position of a scroll box. The current position is a relative value that depends on the current scrolling range. For example, if the scrolling range is 100 to 200 and the scroll box is in the middle of the bar, the current position is 150.

Syntax

int GetScrollPos( ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CScrollBar Overview, CScrollBar Member Functions, Control Classes, CScrollBar::SetScrollPos, CScrollBar::GetScrollRange, CScrollBar::SetScrollRange