The UDM_GETRANGE message retrieves the minimum and maximum positions (range) for an up-down control.
UDM_GETRANGE
wParam = 0;
lParam = 0;
Return Values
The return value is a 32-bit value that contains the minimum and maximum positions. The low-order word is the maximum position for the control, and the high-order word is the minimum position.