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

Adds a new item sorted in a specific order to the list box of combo.

Returns
Index of the added item in the list box.

Use this function to add items in the list box of a combo box in a specific order. The order is defined by Compare().

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