CComboBox::SetTopIndex

int SetTopIndex( int nIndex );

Return Value

Zero if successful, or LB_ERR if an error occurs.

Parameters

nIndex

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

Remarks

Ensures that a particular item is visible in the list-box portion of the combo box.

The system scrolls the list box until either the item specified by nIndex appears at the top of the list box or the maximum scroll range has been reached.

CComboBox OverviewClass MembersHierarchy Chart

See Also   CComboBox::GetTopIndex, CB_SETTOPINDEX