GME
13
|
00001 #if !defined(AFX_GMEOLEPANEL_H__03D69231_4001_4249_B5B9_B74C7A0E2157__INCLUDED_) 00002 #define AFX_GMEOLEPANEL_H__03D69231_4001_4249_B5B9_B74C7A0E2157__INCLUDED_ 00003 00004 #if _MSC_VER > 1000 00005 #pragma once 00006 #endif // _MSC_VER > 1000 00007 // GMEOLEPanel.h : header file 00008 // 00009 00010 00012 // CGMEOLEPanel command target 00013 00014 class CGMEOLEPanel : public CCmdTarget 00015 { 00016 DECLARE_DYNCREATE(CGMEOLEPanel) 00017 00018 CGMEOLEPanel(); // protected constructor used by dynamic creation 00019 00020 // Attributes 00021 public: 00022 00023 // Operations 00024 public: 00025 void SetParams(CPane *control, CString name, IDispatch* interf = NULL) { 00026 m_control = control; 00027 m_name = name; 00028 m_interf = interf; 00029 } 00030 00031 // Overrides 00032 public: 00033 virtual void OnFinalRelease(); 00034 00035 // Implementation 00036 protected: 00037 CPane *m_control; 00038 CString m_name; 00039 IDispatch* m_interf; 00040 00041 virtual ~CGMEOLEPanel(); 00042 00043 // Generated message map functions 00044 //{{AFX_MSG(CGMEOLEPanel) 00045 // NOTE - the ClassWizard will add and remove member functions here. 00046 //}}AFX_MSG 00047 00048 DECLARE_MESSAGE_MAP() 00049 // OLE dispatch map functions 00050 afx_msg BSTR GetName(); 00051 afx_msg void SetName(LPCTSTR lpszNewValue); 00052 afx_msg BOOL GetVisible(); 00053 afx_msg void SetVisible(BOOL bNewValue); 00054 afx_msg IDispatch* GetInterface(); 00055 afx_msg void SetInterface(IDispatch* intf); 00056 00057 DECLARE_DISPATCH_MAP() 00058 DECLARE_INTERFACE_MAP() 00059 00060 BEGIN_DUAL_INTERFACE_PART(Dual, IGMEOLEPanel) 00061 STDMETHOD(get_Name)(THIS_ BSTR* name); 00062 STDMETHOD(put_Visible)(THIS_ VARIANT_BOOL isVisible); 00063 STDMETHOD(get_Visible)(THIS_ VARIANT_BOOL* isVisible); 00064 STDMETHOD(get_Interface)(THIS_ IDispatch** isVisible); 00065 END_DUAL_INTERFACE_PART(Dual) 00066 00067 // add declaration of ISupportErrorInfo implementation 00068 // to indicate we support the OLE Automation error object 00069 DECLARE_DUAL_ERRORINFO() 00070 }; 00071 00073 00074 //{{AFX_INSERT_LOCATION}} 00075 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00076 00077 #endif // !defined(AFX_GMEOLEPANEL_H__03D69231_4001_4249_B5B9_B74C7A0E2157__INCLUDED_)