LB_SELITEMRANGE

3.0

LB_SELITEMRANGE
wParam = (WPARAM) (BOOL) fSelect;   /* selection flag       */
lParam = MAKELPARAM(wFirst, wLast); /* first and last items */

An application sends an LB_SELITEMRANGE message to select one or more consecutive items in a multiple-selection list box.

Parameters

fSelect

Value of wParam. Specifies how to set the selection. If the fSelect parameter is nonzero, the string is selected and highlighted; if fSelect is zero, the highlight is removed and the string is no longer selected.

wFirst

Value of the low-order word of lParam. Specifies the zero-based index of the first item to set.

wLast

Value of the high-order word of lParam. Specifies the zero-based index of the last item to set.

Return Value

The return value is LB_ERR if an error occurs.

Comments

This message should be used only with multiple-selection list boxes.