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.
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 |
virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );