SetSelectedItem Method (Feed Control)
Windows - Visual C++
Description
The SetSelectedItem method selects
or deselects the specified item. The SetSelectedItem method only
applies to multiple selection list boxes.
Syntax
long value = SetSelectedItem(long nIndex, BOOL nSelect);
The SetSelectedItem syntax has these parts:
Part |
Description |
index |
A long integer containing the index of the item to select or deselect. The index value is one-based. |
select |
A Boolean value containing TRUE if the item should be selected and FALSE if it should be deselected. |
value |
A long integer containing -1 if an error occurs, otherwise it is 0. |
Remarks
The SetSelectedItem method only
applies when the MultipleSelection
property is set to TRUE. Use the CurFocus
property to set the selection of a single selection list box.
See Also: GetSelectedItem MultipleSelection CurFocus
Back to: Feed Methods