XLL+ Class Library

CXlControlListBox::SetCurSel

Selects a list-box string

[C++]
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