Rediger

Del via


SBM_GETPOS message

The SBM_GETPOS message is sent to retrieve the current position of the scroll box of a scroll bar control. The current position is a relative value that depends on the current scrolling range. For example, if the scrolling range is 0 through 100 and the scroll box is in the middle of the bar, the current position is 50.

Applications should not send this message directly. Instead, they should use the GetScrollPos function. A window receives this message through its WindowProc function. Applications which implement a custom scroll bar control must respond to these messages for the GetScrollPos function to function properly.

Parameters

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

The return value is the current position of the scroll box in the scroll bar.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

SBM_GETRANGE

SBM_SETPOS

SBM_SETRANGE

SBM_SETRANGEREDRAW