#pragma once // $control_header$ : Declaration of the $control_class$ ActiveX Control class. // $control_class$ : See $control_impl$ for implementation. class $control_class$ : public COleControl { DECLARE_DYNCREATE($control_class$) // Constructor public: $control_class$(); // Overrides public: virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid); [!if SUBCLASS_WINDOW] virtual BOOL PreCreateWindow(CREATESTRUCT& cs); [!endif] virtual void DoPropExchange(CPropExchange* pPX); virtual void OnResetState(); [!if WINDOWLESS || UNCLIPPED_DEVICE_CONTEXT || FLICKER_FREE || MOUSE_NOTIFICATIONS || OPTIMIZED_DRAW] virtual DWORD GetControlFlags(); [!endif] // Implementation protected: ~$control_class$(); [!if RUNTIME_LICENSE] BEGIN_OLEFACTORY($control_class$) // Class factory and guid virtual BOOL VerifyUserLicense(); virtual BOOL GetLicenseKey(DWORD, BSTR *); END_OLEFACTORY($control_class$) [!else] DECLARE_OLECREATE_EX($control_class$) // Class factory and guid [!endif] DECLARE_OLETYPELIB($control_class$) // GetTypeInfo DECLARE_PROPPAGEIDS($control_class$) // Property page IDs DECLARE_OLECTLTYPE($control_class$) // Type name and misc status [!if SUBCLASS_WINDOW] // Subclassed control support BOOL IsSubclassedControl(); LRESULT OnOcmCommand(WPARAM wParam, LPARAM lParam); [!endif] // Message maps DECLARE_MESSAGE_MAP() // Dispatch maps DECLARE_DISPATCH_MAP() [!if ABOUT_BOX] afx_msg void AboutBox(); [!endif] // Event maps DECLARE_EVENT_MAP() // Dispatch and event IDs public: enum { }; };