BCGControlBar Pro for MFC
virtual INT_PTR CBCGPToolbarComboBoxButton::AddItem ( LPCTSTR  lpszItem,
DWORD_PTR  dwData = 0 
)
virtual

Adds an item at the end of the list in the list box of a combo box.

Returns
The number of items in the list box of a combo box.

First, this function checks, whether the specified item has been already added, and if so, selects it. If the item does not exist in the list, it is added. In both cases, the item's text is inserted in the edit control of a combo box.

Parameters
lpszItemSpecifies the text of an item to add.
dwDataSpecifies the data to associate with the added item.