SBM SETPOS
Appearance
This message sets the position of the slider in a scroll bar window.
Syntax
param1 SHORT sslider; /* Position of slider. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- sslider (SHORT) - Input
- Position of slider.
- If this value is outside the scroll-bar range, the slider is moved to the nearest valid position within the range.
- ulReserved (ULONG) - Input
- Reserved value, should be 0.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE: Successful completion
- FALSE: Error occurred
Remarks
The scroll bar control window procedure responds to this message by setting the position of the slider.
The scroll bar control is redrawn to reflect the change.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it.