Condividi tramite


CMFCRibbonComboBox::GetItem

Returns the string associated with an item at a specified index in the list box.

LPCTSTR GetItem(
   int iIndex 
) const;

Parameters

  • [in] iIndex
    The zero-based index of an item in the list box.

Return Value

A pointer to the string that is associated with the item; otherwise, NULL if the index parameter is invalid, or if the index parameter is -1 and there is no item selected in the combo box.

Requirements

Header: afxribboncombobox.h

See Also

Reference

CMFCRibbonComboBox Class

Hierarchy Chart