Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Controls
Control Library
Up-Down Control
Messages
 UDM_SETPOS32 Message
UDM_SETPOS32 Message

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 Versioncomctl32.dll version 5.80 or later
Headercommctrl.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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker