Returns the zero-based index of the currently selected string in a list box
[C++]
int GetCurSel() const;
The zero-based index of the currently selected item. It is -1 if
no item is currently selected.
Retrieves the zero-based index of the currently selected item, if any, in a
single-selection list box.
Header: xldialog.h