XLL+ Class Library (7.0)

CXlControlListBox::SetCurSel

Selects a list-box string

int SetCurSel(
   int nIndex
);

Parameters

nIndex

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

Return Value

-1 if an error occurs.

Remarks

Selects a string and scrolls it into view, if necessary. When the new string is selected, the list box removes the highlight from the previously selected string.

Requirements

Header: xldialog.h

See Also

CXlControlListBox Class | CXlControlListBox Methods