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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
LB_SELITEMRANGEEX
LB_SETSEL
Other Resources
MAKELPARAM

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.