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 current position of the slider in a trackbar.
Syntax
TBM_SETPOS wParam = (WPARAM)(BOOL) fPosition; lParam = (LPARAM)(LONG) lPosition; |
Parameters
- fPosition
-
Redraw flag. If set to TRUE, the message redraws the control with the slider at the position given by lPosition. If set to FALSE, the message does not redraw the slider at the new position.
The message sets the value of the slider position (as returned by the TBM_GETPOS message) regardless of the fPositionparameter.
- lPosition
-
New logical position of the slider. Valid logical positions are the integer values in the trackbar's range of minimum to maximum slider positions. If this value is outside the control's maximum and minimum range, the position is set to the maximum or minimum value.
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 |