web.odl

来自「visual c++实现对指定文件的加解密」· ODL 代码 · 共 72 行

ODL
72
字号
// web.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 (web.tlb) that will become a resource in
// web.ocx.

#include <olectl.h>
#include <idispids.h>

[ uuid(CD2CE0E9-A497-42EF-B75A-73DFF13F71BE), version(1.0),
  helpfile("web.hlp"),
  helpstring("web ActiveX Control module"),
  control ]
library WEBLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CWebCtrl

	[ uuid(33E2DFB4-F900-4273-AC54-6FDEF72D02D3),
	  helpstring("Dispatch interface for Web Control"), hidden ]
	dispinterface _DWeb
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CWebCtrl)
			//}}AFX_ODL_PROP

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

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

	//  Event dispatch interface for CWebCtrl

	[ uuid(F58097E5-19B0-43D3-8FDA-6671BDE7A84F),
	  helpstring("Event interface for Web Control") ]
	dispinterface _DWebEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CWebCtrl)
			//}}AFX_ODL_EVENT
	};

	//  Class information for CWebCtrl

	[ uuid(89C476F8-EC9C-4A6C-A205-2CC036C43739),
	  helpstring("Web Control"), control ]
	coclass Web
	{
		[default] dispinterface _DWeb;
		[default, source] dispinterface _DWebEvents;
	};


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

⌨️ 快捷键说明

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