Call this member function to retrieve the zero-based index of the currently selected item, if any, in a single-selection list box.
int GetCurSel( ) const;
| Header File | Afxwin.h |
| Platforms | |
| Versions | 1.0 and later |
| Complete documentation | Visual C++ documentation |
CListBox Overview, CListBox Member Functions, Control Classes, CListBox::SetCurSel