int SetScrollPos( int nBar, int nPos, BOOL bRedraw = TRUE );
Return Value
The previous position of the scroll box.
Parameters
nBar
Specifies the scroll bar to be set. This parameter can be either of the following:
nPos
Specifies the new position of the scroll box. It must be within the scrolling range.
bRedraw
Specifies whether the scroll bar should be repainted to reflect the new scroll-box position. If this parameter is TRUE, the scroll bar is repainted; if FALSE, the scroll bar is not repainted.
Remarks
Sets the current position of a scroll box and, if requested, redraws the scroll bar to reflect the new position of the scroll box.
Setting bRedraw to FALSE is useful whenever the scroll bar will be redrawn by a subsequent call to another function.
CWnd Overview | Class Members | Hierarchy Chart
See Also ::SetScrollPos, CWnd::GetScrollPos, CScrollBar::SetScrollPos