CTerminalEmulator::SetScrollPos Method  
 
BOOL SetScrollPos(
  INT nScrollBar,  
  INT nScrollPos  
);

The SetScrollPos method sets the position of the scroll box for the specified scroll bar and redraws the scroll bar to reflect the new position of the scroll box.

Parameters

nScrollBar
Specifies the scroll bar to be set. This parameter can be one of the following values:
Value Description
SB_HORZ Sets the position of the scroll box in the display's standard horizontal scroll bar.
SB_VERT Sets the position of the scroll box in the display's standard vertical scroll bar.
nScrollPos
Specifies the new row or column of the scroll box. The position must be within the scrolling range.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, it returns zero.

Remarks

This method should always be used to change the scroll box position. The SetScrollPos method will result in unpredictable behavior if used on the virtual display window.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csnvtv10.lib

See Also

GetScrollPos, Scroll, Update