CScrollBar::SetScrollRange

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.

Syntax

void SetScrollRange( int nMinPos, int nMaxPos, BOOL bRedraw = TRUE );

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::GetScrollPos, CScrollBar::SetScrollPos, CScrollBar::GetScrollRange