다음을 통해 공유


CMFCToolBarComboBoxButton::GetItem

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

LPCTSTR GetItem(
   int iIndex=-1 
) const;

Parameters

  • [in] iIndex
    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 selected item in the combo box.

Remarks

An index parameter of -1 returns the string of the item that is currently selected.

Requirements

Header: afxtoolbarcomboboxbutton.h

See Also

Reference

CMFCToolBarComboBoxButton Class

Hierarchy Chart