TBM_GETRANGEMAX
The TBM_GETRANGEMAX message retrieves the maximum position for the slider in a trackbar.
wParam = 0;
lParam = 0;
Return Values
Returns a 32-bit value that specifies the maximum position.