Share via


CMFCToolBarComboBoxButton::AddSortedItem

Adds an item to the list box in the order that is defined by the Compare method.

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

Parameters

  • [in] lpszItem
    The text of the item to add to the list box.

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

Return Value

Index of the item that was added to the list box.

Remarks

Use this function to add items to the list box in a specific order.

Requirements

Header: afxtoolbarcomboboxbutton.h

See Also

Reference

CMFCToolBarComboBoxButton Class

Hierarchy Chart

CMFCToolBarComboBoxButton::Compare