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

void ScrollBar_SetPos(
   hwndCtl,
   pos,
   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

None

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