#include "dadrag.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; IDAGeometryPtr _geo; CDADrag* _dragPtr; CDARelease* _releasePtr; };