CComboBox::GetCurSel

CComboBox::GetCurSel

int GetCurSel( ) const;

Return Value

The zero-based index of the currently selected item in the list box of a combo box, or CB_ERR if no item is selected.

Remarks

Call this member function to determine which item in the combo box is selected. GetCurSel returns an index into the list.

CComboBox Overview |  Class Members |  Hierarchy Chart

See Also   CComboBox::SetCurSel, CB_GETCURSEL