ScrollBar_GetPos macro (windowsx.h)

Retrieves the position of the scroll box (thumb) in the specified scroll bar.

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

Syntax

int ScrollBar_GetPos(
   HWND hwndCtl
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

Return value

Type: int

The current position of the scroll bar.

Remarks

For more information, see GetScrollInfo.

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