CComboBox::CompareItem

This member function is called by the framework to determine the relative position of a new item in the list-box portion of a sorted owner-draw combo box. By default, this member function does nothing. If you create an owner-draw combo box with the LBS_SORT style, you must override this member function to assist the framework in sorting new items added to the list box.

Syntax

virtual int CompareItem( LPCOMPAREITEMSTRUCT lpCompareItemStruct );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CComboBox Overview, CComboBox Member Functions, Control Classes, CComboBox::DrawItem, CComboBox::MeasureItem, CComboBox::DeleteItem