Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CListCtrl::DrawItem
Collapse the table of content
Expand the table of content

CListCtrl::DrawItem

Called by the framework when a visual aspect of an owner-draw list view control changes.

virtual void DrawItem(
   LPDRAWITEMSTRUCT lpDrawItemStruct 
);

Parameters

lpDrawItemStruct
A long pointer to a DRAWITEMSTRUCT structure that contains information about the type of drawing required.

Remarks

The itemAction member of the DRAWITEMSTRUCT structure defines 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 CListCtrl 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 Also

CListCtrl Overview | Class Members | Hierarchy Chart | CWnd::OnDrawItem

Show:
© 2015 Microsoft