1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #if !defined(AFX_MFCCONTROLCTL_H__AC221FC3_A0D8_11D4_833B_005004526AB4__INCLUDED_)
20 #define AFX_MFCCONTROLCTL_H__AC221FC3_A0D8_11D4_833B_005004526AB4__INCLUDED_
26 // MfcControlCtl.h : Declaration of the CMfcControlCtrl ActiveX Control class.
29 // CMfcControlCtrl : See MfcControlCtl.cpp for implementation.
31 class CMfcControlCtrl
: public COleControl
33 DECLARE_DYNCREATE(CMfcControlCtrl
)
40 // ClassWizard generated virtual function overrides
41 //{{AFX_VIRTUAL(CMfcControlCtrl)
43 virtual void OnDraw(CDC
* pdc
, const CRect
& rcBounds
, const CRect
& rcInvalid
);
44 virtual void DoPropExchange(CPropExchange
* pPX
);
45 virtual void OnResetState();
52 DECLARE_OLECREATE_EX(CMfcControlCtrl
) // Class factory and guid
53 DECLARE_OLETYPELIB(CMfcControlCtrl
) // GetTypeInfo
54 DECLARE_PROPPAGEIDS(CMfcControlCtrl
) // Property page IDs
55 DECLARE_OLECTLTYPE(CMfcControlCtrl
) // Type name and misc status
58 //{{AFX_MSG(CMfcControlCtrl)
59 // NOTE - ClassWizard will add and remove member functions here.
60 // DO NOT EDIT what you see in these blocks of generated code !
65 //{{AFX_DISPATCH(CMfcControlCtrl)
66 afx_msg
short inShort(short val
);
67 afx_msg
long inLong(long val
);
68 afx_msg BSTR
inString(BSTR
* val
);
69 afx_msg
float inFloat(float val
);
70 afx_msg
double inDouble(double val
);
71 afx_msg VARIANT
inVariant(const VARIANT
& val
);
72 afx_msg LPDISPATCH
inObject(LPDISPATCH val
);
73 afx_msg
void outShort(short* val
);
74 afx_msg
void outLong(long* val
);
75 afx_msg
void outString(BSTR
* val
);
76 afx_msg
void outFloat(float* val
);
77 afx_msg
void outDouble(double* val
);
78 afx_msg
void outVariant(VARIANT
* val
);
79 afx_msg
void outObject(LPDISPATCH
* val
);
81 DECLARE_DISPATCH_MAP()
84 //{{AFX_EVENT(CMfcControlCtrl)
88 // Dispatch and event IDs
91 //{{AFX_DISP_ID(CMfcControlCtrl)
101 dispidOutString
= 10L,
102 dispidOutFloat
= 11L,
103 dispidOutDouble
= 12L,
104 dispidOutVariant
= 13L,
105 dispidOutObject
= 14L,
110 //{{AFX_INSERT_LOCATION}}
111 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
113 #endif // !defined(AFX_MFCCONTROLCTL_H__AC221FC3_A0D8_11D4_833B_005004526AB4__INCLUDED)
116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */