Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
GetCaretIndex
CListBox                                    Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Windows 3.1 only
 
  int GetCaretIndex() const;
 
  Remarks
 
  An application calls the GetCaretIndex member function to determine the
  index of the item that has the focus rectangle in a multiple-selection
  list box. The item may or may not be selected.
 
  Return Value
 
  The zero-based index of the item that has the focus rectangle in a list
  box. If the list box is a single-selection list box, the return value is
  the index of the item that is selected, if any.
 
  See Also
 
  CListBox::SetCaretIndex, LB_GETCARETINDEX
 
 
                                     -♦-