共用方式為


CMFCToolBarComboBoxButton::GetItemData

Returns the data associated with an item at a specific index in the list box.

DWORD_PTR GetItemData(
   int iIndex=-1 
) const;

Parameters

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

Return Value

The data associated with the item; or 0 if the item does not exist.

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