#include "notifiers.h" #include #include #include #include class CDAViewerCtl { public: // Construction of the control. We use COM smart pointers in the // viewer control, the pointers are released when they're out of the // scope, so we don't need (the destructor) to release them. CDAViewerCtl(); // For constructing the model. void CreateModel(); void DestroyModel(); // Return the IUnknown pointer of the control. HRESULT GetIUnknown(IUnknown **pUnk); private: IDAViewerControlPtr _vc; CControlPoint2* _b0; CPickHandler* _pPickHandle; CDownHandler* _pDownHandle; };