This method calls CComControl::OnDrawAdvanced which in turn calls the OnDraw method of your control class. 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".
HRESULT Draw( DWORD dwDrawAspect, LONG lindex, void* pvAspect, DVTARGETDEVICE* ptd, HDC hicTargetDev, LPCRECTL prcBounds, LPCRECTL prcWBounds, BOOL(_stdcall * pfnContinue) (DWORD dwContinue), DWORD dwContinue );
Header file: | Atlctl.h |
Platforms: | |
Versions: | Version 2.0 and later |
Complete documentation: | Visual C++ documentation |
IViewObjectExImpl Overview, IViewObjectExImpl Methods, CComControl::OnDrawAdvanced, CComControl::OnDraw