XLL+ Class Library (6.3)

CXlControlListBox::GetSel

Returns the selection state of a list-box item

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