Compartilhar via


CMFCToolBarComboBoxButton::GetItemDataPtrAll

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. This data is returned as a pointer.

static void* GetItemDataPtrAll(
   UINT uiCmd,
   int iIndex=-1
);

Parameters

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

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

Return Value

A pointer associated with the item if the method was successful; otherwise, -1 if an error occurs, or NULL if the combo box button is not found.

Requirements

Header: afxtoolbarcomboboxbutton.h

See Also

Reference

CMFCToolBarComboBoxButton Class

Hierarchy Chart