This event lets you customize the appearance of a ListView control using owner drawing. It is raised only when the OwnerDraw property is set to true and the View property is set to View::Details. This event can occur for each column header in the control. For more information on owner drawing, see the OwnerDraw property reference topic.
The following code example provides an implementation of a DrawColumnHeader event handler. For the complete example, including the implementation of the DrawSubItem event handler, see the OwnerDraw reference topic.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)