The TBM_SETRANGEMAX message sets the maximum position for the slider in a trackbar.
TBM_SETRANGEMAX
wParam = (WPARAM) fRedraw;
lParam = (LPARAM) lMaximum;
Parameters
fRedraw
Redraw flag. If this parameter is TRUE, the slider is redrawn after the range is set.
lMaximum
Maximum position for the slider.
Return Values
No return value.