CWnd::SetScrollPos

This method sets the current position of a scroll box and, optionally, redraw the scroll bar to reflect the new position of the scroll box.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

int SetScrollPos( int nBar, int nPos, BOOL bRedraw = TRUE );

See Also

CWnd::GetScrollPos, CScrollBar::SetScrollPos