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.
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
 
 
                                     -♦-