XLL+ Class Library

CXlControlListBox::GetSel

Returns the selection state of a list-box item

[C++]
int GetSel(
   int nIndex
) const;

Parameters

nIndex

Specifies the zero-based index of the item in the list box.

Return value

A positive number if the specified item is selected; otherwise, it is 0. The return value is -1 if an error occurs.

Remarks

Retrieves the selection state of an item.

Requirements

Header: xldialog.h

See Also

CXlControlListBox Class | CXlControlListBox Methods