myceactivex.odl

来自「《EVC高级编程及其应用开发》源代码」· ODL 代码 · 共 72 行

ODL
72
字号
// MyCEActiveX.odl : type library source for ActiveX Control project.

// This file will be processed by the Make Type Library (mktyplib) tool to
// produce the type library (MyCEActiveX.tlb) that will become a resource in
// MyCEActiveX.ocx.

#include <olectl.h>

[ uuid(56513C9A-69FF-4F72-81C6-A081B10EBFFE), version(1.0),
  helpfile("helpfile.htm"),
  helpstring("MyCEActiveX ActiveX Control module"),
  control ]
library MYCEACTIVEXLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CMyCEActiveXCtrl

	[ uuid(09B93FF7-2E64-4143-9C69-18EECC23E5DF),
	  helpstring("Dispatch interface for MyCEActiveX Control"), hidden ]
	dispinterface _DMyCEActiveX
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CMyCEActiveXCtrl)
			[id(1)] BSTR MsgContext;
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CMyCEActiveXCtrl)
			[id(2)] void ShowMessage();
			//}}AFX_ODL_METHOD

			[id(DISPID_ABOUTBOX)] void AboutBox();
	};

	//  Event dispatch interface for CMyCEActiveXCtrl

	[ uuid(6CBFEABE-53BE-41AD-9CA7-D5E52BC8B6C4),
	  helpstring("Event interface for MyCEActiveX Control") ]
	dispinterface _DMyCEActiveXEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CMyCEActiveXCtrl)
			[id(1)] void OnMsgChange();
			//}}AFX_ODL_EVENT
	};

	//  Class information for CMyCEActiveXCtrl

	[ uuid(6842371A-9B5A-4B9B-B3B4-750839898BCB),
	  helpstring("MyCEActiveX Control"), control ]
	coclass MyCEActiveX
	{
		[default] dispinterface _DMyCEActiveX;
		[default, source] dispinterface _DMyCEActiveXEvents;
	};


	//{{AFX_APPEND_ODL}}
	//}}AFX_APPEND_ODL}}
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?