00001 #pragma once 00002 #include "controldialog.h" 00003 #include <fstream> 00004 00005 using namespace std; 00006 00007 // axAnxOggPlayerCtrl.h : Declaration of the CaxAnxOggPlayerCtrl ActiveX Control class. 00008 00009 00010 // CaxAnxOggPlayerCtrl : See axAnxOggPlayerCtrl.cpp for implementation. 00011 00012 class CaxAnxOggPlayerCtrl : public COleControl 00013 { 00014 DECLARE_DYNCREATE(CaxAnxOggPlayerCtrl) 00015 00016 // Constructor 00017 public: 00018 CaxAnxOggPlayerCtrl(); 00019 00020 // Overrides 00021 public: 00022 virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid); 00023 virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 00024 virtual void DoPropExchange(CPropExchange* pPX); 00025 virtual void OnResetState(); 00026 00027 // Implementation 00028 protected: 00029 ~CaxAnxOggPlayerCtrl(); 00030 00031 DECLARE_OLECREATE_EX(CaxAnxOggPlayerCtrl) // Class factory and guid 00032 DECLARE_OLETYPELIB(CaxAnxOggPlayerCtrl) // GetTypeInfo 00033 DECLARE_PROPPAGEIDS(CaxAnxOggPlayerCtrl) // Property page IDs 00034 DECLARE_OLECTLTYPE(CaxAnxOggPlayerCtrl) // Type name and misc status 00035 00036 // Subclassed control support 00037 BOOL IsSubclassedControl(); 00038 LRESULT OnOcmCommand(WPARAM wParam, LPARAM lParam); 00039 00040 // Message maps 00041 DECLARE_MESSAGE_MAP() 00042 00043 // Dispatch maps 00044 DECLARE_DISPATCH_MAP() 00045 00046 afx_msg void AboutBox(); 00047 00048 // Event maps 00049 DECLARE_EVENT_MAP() 00050 00051 // Dispatch and event IDs 00052 public: 00053 enum { 00054 }; 00055 protected: 00056 CControlDialog mDialog; 00057 fstream debugLog; 00058 public: 00059 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00060 }; 00061