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

📄 sevensegnum.odl

📁 数码管显示控件源代码
💻 ODL
字号:
// SevenSegNum.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 (SevenSegNum.tlb) that will become a resource in
// SevenSegNum.ocx.

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

[ uuid(5530048D-B3D2-4F07-BE84-E99B15D1E03F), version(1.0),
  helpfile("SevenSegNum.hlp"),
  helpstring("SevenSegNum ActiveX Control module"),
  control ]
library SEVENSEGNUMLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CSevenSegNumCtrl

	[ uuid(2CE5402C-E606-48E7-9910-281330DB8F5D),
	  helpstring("Dispatch interface for SevenSegNum Control"), hidden ]
	dispinterface _DSevenSegNum
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CSevenSegNumCtrl)
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CSevenSegNumCtrl)
			[id(1)] void SetValue(short chValue);
			[id(2)] void SetBackColor(long Backcolor);
			[id(3)] void SetForeColor1(long ForeColor1);
			[id(4)] void SetForeColor2(long ForeColor2);
			//}}AFX_ODL_METHOD

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

	//  Event dispatch interface for CSevenSegNumCtrl

	[ uuid(6814F233-E9B7-4430-B591-B4C049B1B059),
	  helpstring("Event interface for SevenSegNum Control") ]
	dispinterface _DSevenSegNumEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for CSevenSegNumCtrl

	[ uuid(61169E8A-2A92-49F2-A315-9DB356D95DFA),
	  helpstring("SevenSegNum Control"), control ]
	coclass SevenSegNum
	{
		[default] dispinterface _DSevenSegNum;
		[default, source] dispinterface _DSevenSegNumEvents;
	};


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

⌨️ 快捷键说明

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