📄 clock.odl
字号:
// clock.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 (clock.tlb) that will become a resource in
// clock.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(07682945-925B-4FA6-A0B0-24D0F2FBB0E6), version(1.0),
helpfile("clock.hlp"),
helpstring("clock ActiveX Control module"),
control ]
library CLOCKLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CClockCtrl
[ uuid(A28598E9-C46A-44F5-A40D-E6289EF6BA62),
helpstring("Dispatch interface for Clock Control"), hidden ]
dispinterface _DClock
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CClockCtrl)
[id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
[id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;
[id(1)] short Interval;
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CClockCtrl)
[id(2)] void hello();
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CClockCtrl
[ uuid(D76D936E-7128-4973-B5AA-B58AA362ABF8),
helpstring("Event interface for Clock Control") ]
dispinterface _DClockEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CClockCtrl)
[id(DISPID_CLICK)] void Click();
[id(1)] void NewMinute();
//}}AFX_ODL_EVENT
};
// Class information for CClockCtrl
[ uuid(58716399-655F-48A7-BAA5-D0D115D5F70A),
helpstring("Clock Control"), control ]
coclass Clock
{
[default] dispinterface _DClock;
[default, source] dispinterface _DClockEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -