int SelItemRange( BOOL bSelect, int nFirstItem, int nLastItem );
bSelect
Specifies how to set the selection. If bSelect is TRUE, the string is selected and highlighted; if FALSE, the highlight is removed and the string is no longer selected.
nFirstItem
Specifies the zero-based index of the first item to set.
nLastItem
Specifies the zero-based index of the last item to set.
Selects one or more consecutive items in a multiple-selection list box.
Use this member function only with multiple-selection list boxes.
LB_ERR if an error occurs.
LB_SELITEMRANGE, CListBox::GetSelItems