Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CListBox::SelItemRange
CListBox                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int SelItemRange( BOOL bSelect, int nFirstItem, int nLastItem );
 
  Parameter    Description
 
  <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.
 
  Remarks
 
  Selects one or more consecutive items in a multiple-selection list box.
 
  Use this member function only with multiple-selection list boxes.
 
  Return Value
 
  LB_ERR if an error occurs.
 
  See Also
 
  LB_SELITEMRANGE, CListBox::GetSelItems
 
 
                                     -♦-