meter.odl
来自「5个组态软件设计样例(VC++6.0)」· ODL 代码 · 共 71 行
ODL
71 行
// Meter.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 (Meter.tlb) that will become a resource in
// Meter.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(15491A62-5B63-11D5-ADD3-001088AB5D33), version(1.0),
helpfile("Meter.hlp"),
helpstring("Meter ActiveX Control module"),
control ]
library METERLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CwyMeterCtrl
[ uuid(15491A63-5B63-11D5-ADD3-001088AB5D33),
helpstring("Dispatch interface for wyMeter Control"), hidden ]
dispinterface _DwyMeter
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CwyMeterCtrl)
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CwyMeterCtrl)
[id(8)] void SetCurrentValue(double val);
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CwyMeterCtrl
[ uuid(15491A64-5B63-11D5-ADD3-001088AB5D33),
helpstring("Event interface for wyMeter Control") ]
dispinterface _DwyMeterEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CwyMeterCtrl)
//}}AFX_ODL_EVENT
};
// Class information for CwyMeterCtrl
[ uuid(15491A65-5B63-11D5-ADD3-001088AB5D33),
helpstring("wyMeter Control"), control ]
coclass wyMeter
{
[default] dispinterface _DwyMeter;
[default, source] dispinterface _DwyMeterEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?