다음을 통해 공유


CMFCToolBarComboBoxButton::GetItemDataAll

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

static DWORD_PTR GetItemDataAll(
   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

The data associated with the item if the method was successful; otherwise, 0 if the specified index is not valid, or CB_ERR if the combo box button is not found.

Remarks

An index parameter of -1 returns the data associated with the currently selected item.

Requirements

Header: afxtoolbarcomboboxbutton.h

See Also

Reference

CMFCToolBarComboBoxButton Class

Hierarchy Chart