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

📄 battery.odl

📁 电池控件
💻 ODL
字号:
// Battery.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 (Battery.tlb) that will become a resource in
// Battery.ocx.

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

[ uuid(B4CFDF6B-187C-46FC-99E9-3317843A8769), version(1.0),
  helpfile("Battery.hlp"),
  helpstring("Battery ActiveX Control module"),
  control ]
library BATTERYLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CBatteryCtrl

	[ uuid(15F77938-1E61-4419-BC08-6D1CF85B2154),
	  helpstring("Dispatch interface for Battery Control"), hidden ]
	dispinterface _DBattery
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CBatteryCtrl)			
			[id(1)] BSTR BackPicture;
			[id(2)] short Rows;
			[id(3)] short Cols;
			[id(4)] boolean RowAscending;
			[id(5)] boolean ColAscending;
			[id(6)] boolean ShowCoordinate;
			[id(7)] short CoordinateStyle;
			[id(8)] short SpacePercent;
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CBatteryCtrl)
			[id(DISPID_REFRESH)] void Refresh();
			//}}AFX_ODL_METHOD

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

	//  Event dispatch interface for CBatteryCtrl

	[ uuid(D373074B-8678-4AF0-B03D-E33F6121FA76),
	  helpstring("Event interface for Battery Control") ]
	dispinterface _DBatteryEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for CBatteryCtrl

	[ uuid(11726FBD-A85A-4703-971F-CAD65DFC9561),
	  helpstring("Battery Control"), control ]
	coclass Battery
	{
		[default] dispinterface _DBattery;
		[default, source] dispinterface _DBatteryEvents;
	};


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

⌨️ 快捷键说明

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