XLL+ Class Library

CXlControlListBox::GetCurSel

Returns the zero-based index of the currently selected string in a list box

[C++]
int GetCurSel() const;

Return value

The zero-based index of the currently selected item. It is -1 if no item is currently selected.

Remarks

Retrieves the zero-based index of the currently selected item, if any, in a single-selection list box.

Requirements

Header: xldialog.h

See Also

CXlControlListBox Class | CXlControlListBox Methods