CComboBox::CompareItem

This method 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 method does nothing. If you create an owner-draw combo box with the LBS_SORT style, override this method to assist the framework in sorting new items added to the list box.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual int CompareItem(
LPCOMPAREITEMSTRUCT
lpCompareItemStruct );

See Also

CComboBox::DrawItem, CComboBox::MeasureItem, CComboBox::DeleteItem