Call this member function to set the current position of a scroll box to that specified by nPos, and redraw the scroll bar to reflect the new position.
Set bRedraw to FALSE whenever the scroll bar will be redrawn by a subsequent call to another function to avoid having the scroll bar redrawn twice within a short interval.
int SetScrollPos( int nPos, BOOL bRedraw = TRUE );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CScrollBar Overview, CScrollBar Member Functions, Control Classes, CScrollBar::GetScrollPos, CScrollBar::GetScrollRange, CScrollBar::SetScrollRange