1*cdf0e10cSrcweir// MfcControl.odl : type library source for ActiveX Control project. 2*cdf0e10cSrcweir 3*cdf0e10cSrcweir// This file will be processed by the Make Type Library (mktyplib) tool to 4*cdf0e10cSrcweir// produce the type library (MfcControl.tlb) that will become a resource in 5*cdf0e10cSrcweir// MfcControl.ocx. 6*cdf0e10cSrcweir 7*cdf0e10cSrcweir#include <olectl.h> 8*cdf0e10cSrcweir#include <idispids.h> 9*cdf0e10cSrcweir 10*cdf0e10cSrcweir[ uuid(AC221FB3-A0D8-11D4-833B-005004526AB4), version(1.0), 11*cdf0e10cSrcweir helpfile("MfcControl.hlp"), 12*cdf0e10cSrcweir helpstring("MfcControl ActiveX Control module"), 13*cdf0e10cSrcweir control ] 14*cdf0e10cSrcweirlibrary MFCCONTROLLib 15*cdf0e10cSrcweir{ 16*cdf0e10cSrcweir importlib(STDOLE_TLB); 17*cdf0e10cSrcweir importlib(STDTYPE_TLB); 18*cdf0e10cSrcweir 19*cdf0e10cSrcweir // Primary dispatch interface for CMfcControlCtrl 20*cdf0e10cSrcweir 21*cdf0e10cSrcweir [ uuid(AC221FB4-A0D8-11D4-833B-005004526AB4), 22*cdf0e10cSrcweir helpstring("Dispatch interface for MfcControl Control"), hidden ] 23*cdf0e10cSrcweir dispinterface _DMfcControl 24*cdf0e10cSrcweir { 25*cdf0e10cSrcweir properties: 26*cdf0e10cSrcweir // NOTE - ClassWizard will maintain property information here. 27*cdf0e10cSrcweir // Use extreme caution when editing this section. 28*cdf0e10cSrcweir //{{AFX_ODL_PROP(CMfcControlCtrl) 29*cdf0e10cSrcweir //}}AFX_ODL_PROP 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir methods: 32*cdf0e10cSrcweir // NOTE - ClassWizard will maintain method information here. 33*cdf0e10cSrcweir // Use extreme caution when editing this section. 34*cdf0e10cSrcweir //{{AFX_ODL_METHOD(CMfcControlCtrl) 35*cdf0e10cSrcweir [id(1)] short inShort(short val); 36*cdf0e10cSrcweir [id(2)] long inLong(long val); 37*cdf0e10cSrcweir [id(3)] BSTR inString(BSTR* val); 38*cdf0e10cSrcweir [id(4)] float inFloat(float val); 39*cdf0e10cSrcweir [id(5)] double inDouble(double val); 40*cdf0e10cSrcweir [id(6)] VARIANT inVariant(VARIANT val); 41*cdf0e10cSrcweir [id(7)] IDispatch* inObject(IDispatch* val); 42*cdf0e10cSrcweir [id(8)] void outShort([out] short* val); 43*cdf0e10cSrcweir [id(9)] void outLong([out] long* val); 44*cdf0e10cSrcweir [id(10)] void outString([out] BSTR* val); 45*cdf0e10cSrcweir [id(11)] void outFloat([out] float* val); 46*cdf0e10cSrcweir [id(12)] void outDouble([out] double* val); 47*cdf0e10cSrcweir [id(13)] void outVariant([out] VARIANT* val); 48*cdf0e10cSrcweir [id(14)] void outObject([out] IDispatch** val); 49*cdf0e10cSrcweir //}}AFX_ODL_METHOD 50*cdf0e10cSrcweir }; 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir // Event dispatch interface for CMfcControlCtrl 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir [ uuid(AC221FB5-A0D8-11D4-833B-005004526AB4), 55*cdf0e10cSrcweir helpstring("Event interface for MfcControl Control") ] 56*cdf0e10cSrcweir dispinterface _DMfcControlEvents 57*cdf0e10cSrcweir { 58*cdf0e10cSrcweir properties: 59*cdf0e10cSrcweir // Event interface has no properties 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir methods: 62*cdf0e10cSrcweir // NOTE - ClassWizard will maintain event information here. 63*cdf0e10cSrcweir // Use extreme caution when editing this section. 64*cdf0e10cSrcweir //{{AFX_ODL_EVENT(CMfcControlCtrl) 65*cdf0e10cSrcweir //}}AFX_ODL_EVENT 66*cdf0e10cSrcweir }; 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir // Class information for CMfcControlCtrl 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir [ uuid(AC221FB6-A0D8-11D4-833B-005004526AB4), 71*cdf0e10cSrcweir helpstring("MfcControl Control"), control ] 72*cdf0e10cSrcweir coclass MfcControl 73*cdf0e10cSrcweir { 74*cdf0e10cSrcweir [default] dispinterface _DMfcControl; 75*cdf0e10cSrcweir [default, source] dispinterface _DMfcControlEvents; 76*cdf0e10cSrcweir }; 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir //{{AFX_APPEND_ODL}} 80*cdf0e10cSrcweir //}}AFX_APPEND_ODL}} 81*cdf0e10cSrcweir}; 82*cdf0e10cSrcweir//VT_I2 83