Partager via


CMFCHeaderCtrl::OnDrawItem

Called by the framework to draw a header control column.

virtual void OnDrawItem(
   CDC* pDC,
   int iItem,
   CRect rect,
   BOOL bIsPressed,
   BOOL bIsHighlighted 
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] iItem
    The zero-based index of the item to draw.

  • [in] rect
    The bounding rectangle of the item to draw.

  • [in] bIsPressed
    TRUE to draw the item in pressed state; otherwise, FALSE.

  • [in] bIsHighlighted
    TRUE to draw the item in highlighted state; otherwise, FALSE.

Requirements

Header: afxheaderctrl.h

See Also

Reference

CMFCHeaderCtrl Class

Hierarchy Chart