virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );
Parameters
lpDrawItemStruct
A long pointer to a DRAWITEMSTRUCT structure that contains information about the type of drawing required.
Remarks
Called by the framework when a visual aspect of an owner-draw list box changes. The itemAction and itemState members of the DRAWITEMSTRUCT structure define the drawing action that is to be performed.
By default, this member function does nothing. Override this member function to implement drawing for an owner-draw CListBox object. The application should restore all graphics device interface (GDI) objects selected for the display context supplied in lpDrawItemStruct before this member function terminates.
See CWnd::OnDrawItem for a description of the DRAWITEMSTRUCT structure.
CListBox Overview | Class Members | Hierarchy Chart
See Also CListBox::CompareItem, CWnd::OnDrawItem, WM_DRAWITEM, CListBox::MeasureItem, CListBox::DeleteItem