Share via


CMFCDropDownListBox::GetCurSel

Retrieves the zero-based index of the currently selected item, if any, in the drop-down list box.

int GetCurSel();

Return Value

The zero-based index of the currently selected item, or LB_ERR if no item is currently selected.

Requirements

Header: afxdropdownlistbox.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCDropDownListBox Class