IViewObjectExImpl::Draw
Draws a representation of the control onto a device context.
STDMETHOD(Draw)(
DWORD dwDrawAspect,
LONG lindex,
void* pvAspect,
DVTARGETDEVICE* ptd,
HDC hicTargetDev,
LPCRECTL prcBounds,
LPCRECTL prcWBounds,
BOOL(_stdcall * /* pfnContinue /) (DWORD_PTR dwContinue),
DWORD_PTR /* dwContinue */
);
Remarks
This method calls CComControl::OnDrawAdvanced which in turn calls your control class's OnDraw method. 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 3.0".
See IViewObject::Draw in the Windows SDK.
Requirements
Header: atlctl.h