📄 digital.odl
字号:
// Digital.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 (Digital.tlb) that will become a resource in
// Digital.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(CC0F43D4-1212-4F2D-9845-8B39C5E44E0B), version(1.0),
helpfile("Digital.hlp"),
helpstring("Digital ActiveX Control module"),
control ]
library DIGITALLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CDigitalCtrl
[ uuid(54F8A86E-8CC4-41A0-9540-E7474C62827E),
helpstring("Dispatch interface for Digital Control"), hidden ]
dispinterface _DDigital
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CDigitalCtrl)
[id(1)] short nBit;
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CDigitalCtrl)
[id(2)] void Init(BSTR param);
[id(3)] BSTR GetParameter();
[id(4)] void SetFloatValue(DATE Time, BSTR Channel, float Value);
[id(5)] void SetFloatAlarm(DATE Time, BSTR Channel, short Level, float Value);
[id(6)] void SetAlarmConfirm(DATE Time, BSTR Channel, BSTR ConfirmOp);
[id(7)] void SetID(short id);
[id(8)] void SetEditMode(boolean bEdit);
[id(9)] void SetChannel(VARIANT* pChannelParam);
[id(10)] void HaveLink(boolean haveLink);
[id(11)] void SetError(DATE Time, BSTR Channel, short Value, BSTR strError);
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CDigitalCtrl
[ uuid(02A95172-8D02-43ED-8624-26A67E640DD4),
helpstring("Event interface for Digital Control") ]
dispinterface _DDigitalEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CDigitalCtrl)
[id(1)] void LBDown(short x, short y);
[id(2)] void DBClick(short ID);
[id(3)] void ChannelReq(short ID, BSTR Prompt);
[id(4)] void ChannelInfo(short ID, short ChannelID, short InforType);
[id(5)] void ChannelDayStat(short ID, short ChannelID);
[id(6)] void ChannelHourStat(short ID, short ChannelID);
[id(7)] void Control(short ID, short ChannelID);
[id(8)] void Regulate(short ID, short ChannelID);
[id(9)] void Confirm(short ID, short ChannelID);
[id(10)] void ChannelHistoryData(short ID, BSTR ChannelID);
//}}AFX_ODL_EVENT
};
// Class information for CDigitalCtrl
[ uuid(C35119F3-6FF1-4BE4-BA75-25F27AA1DE99),
helpstring("Digital Control"), control ]
coclass Digital
{
[default] dispinterface _DDigital;
[default, source] dispinterface _DDigitalEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -