The UDM_SETRANGE message sets the minimum and maximum positions (range) for an up-down control.
UDM_SETRANGE wParam = 0; lParam = (LPARAM) MAKELONG((short) nUpper, (short) nLower);
No return value.
The maximum position can be less than the minimum position. Clicking the up arrow moves the current position closer to the maximum position, and clicking the down arrow moves towards the minimum position.