SBM_GETRANGE

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 
 

Parameters

lpnMinPos
Pointer to a value that receives the minimum scrolling position.
lpnMaxPos
Pointer to a value that receives the maximum scrolling position.

Return Values

This message does not return a value.

QuickInfo

  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.

See Also

Scroll Bars Overview, Scroll Bar Messages, SBM_GETPOS, SBM_SETPOS, SBM_SETRANGE, SBM_SETRANGEREDRAW