1 #if !defined(AFX_MFCCONTROLCTL_H__AC221FC3_A0D8_11D4_833B_005004526AB4__INCLUDED_) 2 #define AFX_MFCCONTROLCTL_H__AC221FC3_A0D8_11D4_833B_005004526AB4__INCLUDED_ 3 4 #if _MSC_VER > 1000 5 #pragma once 6 #endif // _MSC_VER > 1000 7 8 // MfcControlCtl.h : Declaration of the CMfcControlCtrl ActiveX Control class. 9 10 ///////////////////////////////////////////////////////////////////////////// 11 // CMfcControlCtrl : See MfcControlCtl.cpp for implementation. 12 13 class CMfcControlCtrl : public COleControl 14 { 15 DECLARE_DYNCREATE(CMfcControlCtrl) 16 17 // Constructor 18 public: 19 CMfcControlCtrl(); 20 21 // Overrides 22 // ClassWizard generated virtual function overrides 23 //{{AFX_VIRTUAL(CMfcControlCtrl) 24 public: 25 virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid); 26 virtual void DoPropExchange(CPropExchange* pPX); 27 virtual void OnResetState(); 28 //}}AFX_VIRTUAL 29 30 // Implementation 31 protected: 32 ~CMfcControlCtrl(); 33 34 DECLARE_OLECREATE_EX(CMfcControlCtrl) // Class factory and guid 35 DECLARE_OLETYPELIB(CMfcControlCtrl) // GetTypeInfo 36 DECLARE_PROPPAGEIDS(CMfcControlCtrl) // Property page IDs 37 DECLARE_OLECTLTYPE(CMfcControlCtrl) // Type name and misc status 38 39 // Message maps 40 //{{AFX_MSG(CMfcControlCtrl) 41 // NOTE - ClassWizard will add and remove member functions here. 42 // DO NOT EDIT what you see in these blocks of generated code ! 43 //}}AFX_MSG 44 DECLARE_MESSAGE_MAP() 45 46 // Dispatch maps 47 //{{AFX_DISPATCH(CMfcControlCtrl) 48 afx_msg short inShort(short val); 49 afx_msg long inLong(long val); 50 afx_msg BSTR inString(BSTR* val); 51 afx_msg float inFloat(float val); 52 afx_msg double inDouble(double val); 53 afx_msg VARIANT inVariant(const VARIANT FAR& val); 54 afx_msg LPDISPATCH inObject(LPDISPATCH val); 55 afx_msg void outShort(short* val); 56 afx_msg void outLong(long* val); 57 afx_msg void outString(BSTR FAR* val); 58 afx_msg void outFloat(float* val); 59 afx_msg void outDouble(double* val); 60 afx_msg void outVariant(VARIANT FAR* val); 61 afx_msg void outObject(LPDISPATCH FAR* val); 62 //}}AFX_DISPATCH 63 DECLARE_DISPATCH_MAP() 64 65 // Event maps 66 //{{AFX_EVENT(CMfcControlCtrl) 67 //}}AFX_EVENT 68 DECLARE_EVENT_MAP() 69 70 // Dispatch and event IDs 71 public: 72 enum { 73 //{{AFX_DISP_ID(CMfcControlCtrl) 74 dispidInShort = 1L, 75 dispidInLong = 2L, 76 dispidInString = 3L, 77 dispidInFloat = 4L, 78 dispidInDouble = 5L, 79 dispidInVariant = 6L, 80 dispidInObject = 7L, 81 dispidOutShort = 8L, 82 dispidOutLong = 9L, 83 dispidOutString = 10L, 84 dispidOutFloat = 11L, 85 dispidOutDouble = 12L, 86 dispidOutVariant = 13L, 87 dispidOutObject = 14L, 88 //}}AFX_DISP_ID 89 }; 90 }; 91 92 //{{AFX_INSERT_LOCATION}} 93 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 94 95 #endif // !defined(AFX_MFCCONTROLCTL_H__AC221FC3_A0D8_11D4_833B_005004526AB4__INCLUDED) 96 // BYTE 97