Share via


CMFCRibbonComboBox::AddItem

Appends a unique item to the list box.

virtual INT_PTR AddItem(
   LPCTSTR lpszItem,
   DWORD_PTR dwData=0 
);

Parameters

  • [in] lpszItem
    The string of the item to add.

  • [in] dwData
    The data associated with the item to add.

Return Value

The zero-based index of the appended item.

Requirements

Header: afxribboncombobox.h

See Also

Reference

CMFCRibbonComboBox Class

Hierarchy Chart