CButton::DrawItem

This method is called by the framework when a visual aspect of an owner-drawn button has changed. An owner-drawn button has the BS_OWNERDRAW style set. Override this method to implement drawing for an owner-drawn CButton object. The application should restore all graphics device interface (GDI) objects selected for the display context specified by lpDrawItemStruct before the method terminates.

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

CButton::SetButtonStyle