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::GetCurSel
CListBox                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int GetCurSel() const;
 
  Remarks
 
  Retrieves the zero-based index of the currently selected item, if any,
  in a single-selection list box.
 
  GetCurSel should not be called for a multiple-selection list box.
 
  Return Value
 
  The zero-based index of the currently selected item. It is LB_ERR if no
  item is currently selected or if the list box is a multiple-selection
  list box.
 
  See Also
 
  LB_GETCURSEL, CListBox::SetCurSel
 
 
                                     -♦-