ScrollBar_SetPos macro (windowsx.h)

Sets the position of the scroll box (thumb) in the specified scroll bar and, if requested, redraws the scroll bar to reflect the new position of the scroll box.

Note  This macro expands to a call to the SetScrollPos function, which is deprecated. New applications should use the SetScrollInfo function.
 

Syntax

BOOL ScrollBar_SetPos(
   HWND hwndCtl,
   int  pos,
   BOOL fRedraw
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

pos

Type: int

The new position of the scroll box.

fRedraw

Type: BOOL

TRUE to redraw the control; otherwise FALSE.

Return value

Type: BOOL

See SetScrollPos.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h