Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message sets the minimum and maximum positions, or the range, for a up-down control.

Syntax

UDM_SETRANGE 
wParam = 0; 

lParam = (LPARAM)MAKELONG(
  (short)
nUpper,
  (short)
nLower 
);

Parameters

wParam

Not used.

nUpperand nLower

Maximum position and minimum position for the up-down control. 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

None.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

UDM_GETRANGE