aneasyvalue.odl

来自「用VC++实现的一个简单的ActiveX控件」· ODL 代码 · 共 77 行

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

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

[ uuid(6BD33EE9-DB5E-4BA6-B145-4A156F901A9C), version(1.0),
  helpfile("AnEasyValue.hlp"),
  helpstring("AnEasyValue ActiveX Control module"),
  control ]
library ANEASYVALUELib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CAnEasyValueCtrl

	[ uuid(D7929955-BF2A-4C48-92C8-42EDF3E201FA),
	  helpstring("Dispatch interface for AnEasyValue Control"), hidden ]
	dispinterface _DAnEasyValue
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CAnEasyValueCtrl)
			[id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
			[id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;
			[id(1)] long TextAlign;
			//}}AFX_ODL_PROP

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

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

	//  Event dispatch interface for CAnEasyValueCtrl

	[ uuid(ACA26236-AB86-463D-9B85-58E81A8D41BB),
	  helpstring("Event interface for AnEasyValue Control") ]
	dispinterface _DAnEasyValueEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for CAnEasyValueCtrl

	[ uuid(0C3DDEEC-18AA-45BE-9B2D-A5EDFD9E889F),
	  helpstring("AnEasyValue Control"), control ]
	coclass AnEasyValue
	{
		[default] dispinterface _DAnEasyValue;
		[default, source] dispinterface _DAnEasyValueEvents;
	};


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

⌨️ 快捷键说明

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