XLL+ Class Library (6.3)

CXlControlListBox::GetCurSel

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

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