This topic has not yet been rated - Rate this topic

CComControlBase::OnDraw

Override this method to draw your control.

virtual HRESULT OnDraw(
   ATL_DRAWINFO& di 
);
di

A reference to the ATL_DRAWINFO structure that contains drawing information such as the draw aspect, the control bounds, and whether the drawing is optimized or not.

A standard HRESULT value.

The default OnDraw deletes or restores the device context or does nothing, depending on flags set in CComControlBase::OnDrawAdvanced.

An OnDraw method is automatically added to your control class when you create your control with the ATL Control Wizard. The wizard's default OnDraw draws a rectangle with the label "ATL 8.0".

Header: atlctl.h

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ