CComboBox::MeasureItem

This method is called by the framework when a combo box with an owner-draw style is created.

By default, this method does nothing. Override this method and fill in the MEASUREITEMSTRUCT structure to inform Windows CE of the dimensions of the list box in the combo box. If the combo box is created with the CBS_OWNERDRAWVARIABLE style, the framework calls this method for each item in the list box. Otherwise, this method is called only once.

Using the CBS_OWNERDRAWFIXED style in an owner-draw combo box created with the SubclassDlgItem method of CWnd involves further programming considerations.

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 void MeasureItem(
LPMEASUREITEMSTRUCT
lpMeasureItemStruct );

See Also

CComboBox::CompareItem, CComboBox::DrawItem, CComboBox::DeleteItem, CWnd::SubclassDlgItem