TBM_SETSEL message

Sets the starting and ending positions for the available selection range in a trackbar.

Parameters

wParam

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

lParam

The LOWORD specifies the starting logical position for the selection range, and the HIWORD specifies the ending logical position.

Return value

No return value.

Remarks

This message is ignored if the trackbar does not have the TBS_ENABLESELRANGE style.

TBM_SETSEL allows you to restrict the pointer to only a portion of the range available to the progress bar.

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_GETSELEND

TBM_GETSELSTART

TBM_SETSELEND

TBM_SETSELSTART