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