The TBM_SETSEL message sets the starting and ending positions for the current selection in a trackbar.
TBM_SETSEL
wParam = (WPARAM) (BOOL) fRedraw;
lParam = (LPARAM) MAKELONG(lMinimum, lMaximum);
Parameters
fRedraw
Redraw flag. If this parameter is TRUE, the slider is redrawn after the selection is set.
lMinimum
Starting position for the slider.
lMaximum
Ending position for the slider.
Return Values
No return value.