CComboBox::DrawItem

This method is called by the framework when a visual aspect of an owner-draw combo box changes. The itemAction member of the DRAWITEMSTRUCT structure defines the drawing action that is to be performed.

By default, this method does nothing. Override this method to implement drawing for an owner-draw CComboBox object. Before this method terminates, the application should restore all graphics device interface (GDI) objects selected for the display context supplied in lpDrawItemStruct.

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 DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );

See Also

CComboBox::CompareItem, CComboBox::MeasureItem, CComboBox::DeleteItem, CWnd::OnDrawItem