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::GetSel
CListBox                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int GetSel( int nIndex ) const;
 
  Parameter   Description
 
  <nIndex>    Specifies the zero-based index of the item.
 
  Remarks
 
  Retrieves the selection state of an item. This member function works
  with both single and multiple-selection list boxes.
 
  Return Value
 
  A positive number if the specified item is selected; otherwise, it is 0.
  The return value is LB_ERR if an error occurs.
 
  See Also
 
  LB_GETSEL, CListBox::SetSel
 
 
                                     -♦-