pj.odl

来自「Visual C++程序设计技巧与实例」· ODL 代码 · 共 73 行

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

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

[ uuid(51D84859-28DF-4DD2-93A5-A486513FAA5D), version(1.0),
  helpfile("PJ.hlp"),
  helpstring("PJ ActiveX Control module"),
  control ]
library PJLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CPJCtrl

	[ uuid(D9D3F9B1-A916-4BE9-9BBF-E6FDA7F58DF5),
	  helpstring("Dispatch interface for PJ Control"), hidden ]
	dispinterface _DPJ
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CPJCtrl)
			[id(1)] short index;
			[id(2)] boolean IsBK;
			[id(3)] boolean IsMove;
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CPJCtrl)
			//}}AFX_ODL_METHOD

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

	//  Event dispatch interface for CPJCtrl

	[ uuid(3A484D0B-19DD-4FCB-835A-172038AC93A7),
	  helpstring("Event interface for PJ Control") ]
	dispinterface _DPJEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for CPJCtrl

	[ uuid(6F943BB3-B9C1-4E45-8DE1-4D8E8BABB884),
	  helpstring("PJ Control"), control ]
	coclass PJ
	{
		[default] dispinterface _DPJ;
		[default, source] dispinterface _DPJEvents;
	};


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

⌨️ 快捷键说明

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