UDM_GETPOS

UDM_GETPOS message

Retrieves the current position of an up-down control with 16-bit precision.

Parameters

wParam
Must be zero.
lParam
Must be zero.

Return value

If successful, the HIWORD is set to zero and the LOWORD is set to the control's current position. If an error occurs, the HIWORD is set to a nonzero value.

Remarks

When processing this message, the up-down control updates its current position based on the caption of the buddy window. The up-down control returns an error if there is no buddy window or if the caption specifies an invalid or out-of-range value. Also, an error flag is set in the HIWORD of the return if the control is created without the UDS_SETBUDDYINT style, even though it returns a valid position value in the LOWORD of the return.

If 32-bit values have been enabled for an up-down control with UDM_SETRANGE32, this message returns only the lower 16 bits of the position. To retrieve the full 32-bit position, use UDM_GETPOS32.

Requirements

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_GETRANGE32
UDM_SETPOS
UDM_SETRANGE32

 

 

Community Additions

ADD
Show:
© 2016 Microsoft