Sets the position of an up-down control with 32-bit precision.
Syntax
To send this message, call the
SendMessage
function as follows.
|
|
lResult = SendMessage(
| // returns LRESULT in lResult
| | (HWND) hWndControl,
| // handle to destination control
| | (UINT) UDM_SETPOS32,
| // message ID
| | (WPARAM) wParam,
| // = 0; not used, must be zero | | (LPARAM) lParam
| // = (LPARAM) (INT) nPos; | |
);
| |
|
Parameters
- wParam
-
Must be zero.
- nPos
-
Variable of type integer that specifies the new position for the up-down control. If the parameter is outside the control's specified range, nPos is set to the nearest valid value.
Return Value
Returns the previous position.
Message Information
| Minimum DLL Version | comctl32.dll version 5.80 or later |
|---|
| Header | commctrl.h |
|---|
| Minimum operating systems |
Windows 2000, Windows NT 4.0 with Internet Explorer 5, Windows 98, Windows 95 with Internet Explorer 5 |
|---|
See Also
UDM_GETPOS, UDM_SETPOS, UDM_GETPOS32