1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #if !defined(AFX_MFCCONTROLCTL_H__AC221FC3_A0D8_11D4_833B_005004526AB4__INCLUDED_)
23 #define AFX_MFCCONTROLCTL_H__AC221FC3_A0D8_11D4_833B_005004526AB4__INCLUDED_
24 
25 #if _MSC_VER > 1000
26 #pragma once
27 #endif // _MSC_VER > 1000
28 
29 // MfcControlCtl.h : Declaration of the CMfcControlCtrl ActiveX Control class.
30 
31 /////////////////////////////////////////////////////////////////////////////
32 // CMfcControlCtrl : See MfcControlCtl.cpp for implementation.
33 
34 class CMfcControlCtrl : public COleControl
35 {
36 	DECLARE_DYNCREATE(CMfcControlCtrl)
37 
38 // Constructor
39 public:
40 	CMfcControlCtrl();
41 
42 // Overrides
43 	// ClassWizard generated virtual function overrides
44 	//{{AFX_VIRTUAL(CMfcControlCtrl)
45 	public:
46 	virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
47 	virtual void DoPropExchange(CPropExchange* pPX);
48 	virtual void OnResetState();
49 	//}}AFX_VIRTUAL
50 
51 // Implementation
52 protected:
53 	~CMfcControlCtrl();
54 
55 	DECLARE_OLECREATE_EX(CMfcControlCtrl)    // Class factory and guid
56 	DECLARE_OLETYPELIB(CMfcControlCtrl)      // GetTypeInfo
57 	DECLARE_PROPPAGEIDS(CMfcControlCtrl)     // Property page IDs
58 	DECLARE_OLECTLTYPE(CMfcControlCtrl)		// Type name and misc status
59 
60 // Message maps
61 	//{{AFX_MSG(CMfcControlCtrl)
62 		// NOTE - ClassWizard will add and remove member functions here.
63 		//    DO NOT EDIT what you see in these blocks of generated code !
64 	//}}AFX_MSG
65 	DECLARE_MESSAGE_MAP()
66 
67 // Dispatch maps
68 	//{{AFX_DISPATCH(CMfcControlCtrl)
69 	afx_msg short inShort(short val);
70 	afx_msg long inLong(long val);
71 	afx_msg BSTR inString(BSTR* val);
72 	afx_msg float inFloat(float val);
73 	afx_msg double inDouble(double val);
74 	afx_msg VARIANT inVariant(const VARIANT FAR& val);
75 	afx_msg LPDISPATCH inObject(LPDISPATCH val);
76 	afx_msg void outShort(short* val);
77 	afx_msg void outLong(long* val);
78 	afx_msg void outString(BSTR FAR* val);
79 	afx_msg void outFloat(float* val);
80 	afx_msg void outDouble(double* val);
81 	afx_msg void outVariant(VARIANT FAR* val);
82 	afx_msg void outObject(LPDISPATCH FAR* val);
83 	//}}AFX_DISPATCH
84 	DECLARE_DISPATCH_MAP()
85 
86 // Event maps
87 	//{{AFX_EVENT(CMfcControlCtrl)
88 	//}}AFX_EVENT
89 	DECLARE_EVENT_MAP()
90 
91 // Dispatch and event IDs
92 public:
93 	enum {
94 	//{{AFX_DISP_ID(CMfcControlCtrl)
95 	dispidInShort = 1L,
96 	dispidInLong = 2L,
97 	dispidInString = 3L,
98 	dispidInFloat = 4L,
99 	dispidInDouble = 5L,
100 	dispidInVariant = 6L,
101 	dispidInObject = 7L,
102 	dispidOutShort = 8L,
103 	dispidOutLong = 9L,
104 	dispidOutString = 10L,
105 	dispidOutFloat = 11L,
106 	dispidOutDouble = 12L,
107 	dispidOutVariant = 13L,
108 	dispidOutObject = 14L,
109 	//}}AFX_DISP_ID
110 	};
111 };
112 
113 //{{AFX_INSERT_LOCATION}}
114 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
115 
116 #endif // !defined(AFX_MFCCONTROLCTL_H__AC221FC3_A0D8_11D4_833B_005004526AB4__INCLUDED)
117 // BYTE
118