LB_SELITEMRANGE message

Selects or deselects one or more consecutive items in a multiple-selection list box.

Parameters

wParam

TRUE to select the range of items, or FALSE to deselect it.

lParam

The LOWORD specifies the zero-based index of the first item to select. The HIWORD specifies the zero-based index of the last item to select.

Return value

If an error occurs, the return value is LB_ERR.

Remarks

Use this message only with multiple-selection list boxes.

This message can select a range only within the first 65,536 items.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

LB_SELITEMRANGEEX

LB_SETSEL

Other Resources

MAKELPARAM