The TBM_GETSELSTART message retrieves the starting position of the current selection range in a trackbar.
TBM_GETSELSTART wParam = 0; lParam = 0;
Returns a 32-bit value that specifies the starting position of the current selection range.
A trackbar can have a selection range only if you specified the TBS_ENABLESELRANGE style when you created it.