The TBM_GETNUMTICS message retrieves the number of tick marks in a trackbar.
TBM_GETNUMTICS
wParam = 0; lParam = 0;
Returns the number of tick marks.
The TBM_GETNUMTICS message counts all of the tick marks, including the first and last tick marks created by the trackbar.