CComControl::OnDrawAdvanced

virtual HRESULT OnDrawAdvanced( ATL_DRAWINFO& di );

Return Value

A standard HRESULT value.

Parameters

di

[in] 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.

Remarks

The default OnDrawAdvanced prepares a normalized device context for drawing, then calls your control class's OnDraw method. Override this method if you want to accept the device context passed by the container without normalizing it.

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

CComControl OverviewClass Members

See Also   CComControl::OnDraw, IViewObjectExImpl::Draw