UDM_SETPOS message

Sets the current position for an up-down control with 16-bit precision.

Parameters

wParam

Must be zero.

lParam

New position for the up-down control. If the parameter is outside the control's specified range, lParam will be set to the nearest valid value.

Return value

The return value is the previous position.

Remarks

This message only supports 16-bit positions. If 32-bit values have been enabled for an up-down control with UDM_SETRANGE32, use UDM_SETPOS32.

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

Reference

UDM_GETRANGE

UDM_GETPOS