An application sends the SBM_GETRANGE message to a scroll bar control to retrieve the minimum and maximum position values for the control.
SBM_GETRANGE
wParam = (WPARAM) (LPINT) lpnMinPos; // minimum position
lParam = (LPARAM) (LPINT) lpnMaxPos; // maximum position
This message does not return a value.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 2.0 or later.
Header: Declared in winuser.h.
Scroll Bars Overview, Scroll Bar Messages, SBM_GETPOS, SBM_SETPOS, SBM_SETRANGE, SBM_SETRANGEREDRAW