LB_SELITEMRANGEEX message

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

Parameters

wParam

Specifies the zero-based index of the first item to select.

Windows 95/Windows 98/Windows Millennium Edition (Windows Me) : The wParam parameter is limited to 16-bit values. This means list boxes cannot contain more than 32,767 items. Although the number of items is restricted, the total size in bytes of the items in a list box is limited only by available memory.

lParam

Specifies the zero-based index of the last item to select.

Return value

If an error occurs, the return value is LB_ERR.

Remarks

If the wParam parameter is less than the lParam parameter, the specified range of items is selected. If wParam is greater than or equal to lParam, the range is removed from the specified range of items. To select only one item, select two items and then deselect the unwanted item.

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_SELITEMRANGE
LB_SETSEL

 

 

Community Additions

ADD
Show:
© 2014 Microsoft