UDM_SETRANGE message

Sets the minimum and maximum positions (range) for an up-down control.

Parameters

wParam

Must be zero.

lParam

The LOWORD is a short that specifies the maximum position for the up-down control, and the HIWORD is a short that specifies the minimum position. Neither position can be greater than the UD_MAXVAL value or less than the UD_MINVAL value. In addition, the difference between the two positions cannot exceed UD_MAXVAL.

Return value

No return value.

Remarks

The maximum position can be less than the minimum position. Clicking the up arrow button moves the current position closer to the maximum position, and clicking the down arrow button moves toward the minimum position.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h

See also

MAKELPARAM

UDM_SETRANGE