Compartilhar via


CMFCToolBarComboBoxButton::GetItemAll

Returns the string associated with an item at a specified index in the list box of a combo box button that has a specified command ID.

static LPCTSTR GetItemAll(
   UINT uiCmd,
   int iIndex=-1 
);

Parameters

  • [in] uiCmd
    The command ID of a combo box button.

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

Return Value

A pointer to the item's string if the method was successful; otherwise, NULL if the index is invalid, a combo box button is not found, or if index is -1 and there is no selected item in the combo box.

Remarks

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

Requirements

Header: afxtoolbarcomboboxbutton.h

See Also

Reference

CMFCToolBarComboBoxButton Class

Hierarchy Chart