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