CButton::DrawItem

This member function 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 member function to implement drawing for an owner-drawn CButton object. The application should restore all graphics device interface (GDI) objects selected for the display context supplied in lpDrawItemStruct before the member function terminates.

Syntax

virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CButton Overview, CButton Member Functions, Control Classes, CButton::SetButtonStyle