Muokkaa

Jaa


TBM_SETRANGE message

Sets the range of minimum and maximum logical positions for the slider in a trackbar.

Parameters

wParam

Redraw flag. If this parameter is TRUE, the trackbar is redrawn after the range is set. If this parameter is FALSE, the message sets the range but does not redraw the trackbar.

lParam

The LOWORD specifies the minimum position for the slider, and the HIWORD specifies the maximum position.

Return value

No return value.

Remarks

If the current slider position is outside the new range, the TBM_SETRANGE message sets the slider position to the new maximum or minimum value.

Because this message takes two 16-bit unsigned integer values, the maximum range that this message can specify is from 0 to 65,535. To specify larger range values, use the TBM_SETRANGEMIN and TBM_SETRANGEMAX messages.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h

See also

Reference

TBM_SETRANGEMAX

TBM_SETRANGEMIN