SBM_GETRANGE message

The SBM_GETRANGE message is sent to retrieve the minimum and maximum position values for the scroll bar control.

Applications should not send this message directly. Instead, they should use the GetScrollRange 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 GetScrollRange function to work properly.

Parameters

wParam

Pointer to a variable that receives the minimum scrolling position.

lParam

Pointer to a variable that receives the maximum scrolling position.

Return value

This message does not return a value.

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_GETPOS

SBM_SETPOS

SBM_SETRANGE

SBM_SETRANGEREDRAW