The TBM_GETTHUMBLENGTH message retrieves the length of the slider in a trackbar.
TBM_GETTHUMBLENGTH wParam = 0; lParam = 0;
Returns the length, in pixels, of the slider.
TBM_GETTHUMBRECT, TBM_SETTHUMBLENGTH