⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 switch.odl

📁 VC写的用于电力行业的一个ActiveX控件
💻 ODL
字号:
// switch.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 (switch.tlb) that will become a resource in
// switch.ocx.

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

[ uuid(F1676089-4357-44E0-B144-A83247F2F527), version(1.0),
  helpfile("switch.hlp"),
  helpstring("switch ActiveX Control module"),
  control ]
library SWITCHLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CSwitchCtrl

	[ uuid(4BE6A46D-CB98-47E8-B6CE-55B754066EAE),
	  helpstring("Dispatch interface for Switch Control"), hidden ]
	dispinterface _DSwitch
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CSwitchCtrl)
			[id(1)] OLE_COLOR BackColor;
			[id(2)] OLE_COLOR ForeColor;
			[id(3)] short LineSize;
			[id(4)] boolean ImageHollow;
			[id(5)] OLE_COLOR FillColor;
			[id(6)] boolean OnOff;
			[id(7)] short SwitchType;
			[id(DISPID_TEXT), bindable, requestedit] BSTR Text;
			//}}AFX_ODL_PROP

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

	//  Event dispatch interface for CSwitchCtrl

	[ uuid(1A3CD29E-F619-4B4B-BC86-AD0B003FBEA0),
	  helpstring("Event interface for Switch Control") ]
	dispinterface _DSwitchEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for CSwitchCtrl

	[ uuid(BAC5001B-2512-4DD3-85E0-01E668CEE196),
	  helpstring("Switch Control"), control ]
	coclass Switch
	{
		[default] dispinterface _DSwitch;
		[default, source] dispinterface _DSwitchEvents;
	};


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

⌨️ 快捷键说明

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