Call this member function to set minimum and maximum position values for the given scroll bar. Set nMinPos and nMaxPos to 0 to hide standard scroll bars.
Do not Call this member function to hide a scroll bar while processing a scroll-bar notification message.
void SetScrollRange( int nMinPos, int nMaxPos, 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::SetScrollPos, CScrollBar::GetScrollRange