📄 button.odl
字号:
// Button.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 (Button.tlb) that will become a resource in
// Button.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(BC9C5A83-C896-11D4-AF14-00E04CDD4565), version(1.0),
helpfile("Button.hlp"),
helpstring("Button ActiveX Control module"),
control ]
library BUTTONLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CButtonCtrl
[ uuid(BC9C5A84-C896-11D4-AF14-00E04CDD4565),
helpstring("Dispatch interface for Button Control"), hidden ]
dispinterface _DButton
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CButtonCtrl)
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CButtonCtrl)
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CButtonCtrl
[ uuid(BC9C5A85-C896-11D4-AF14-00E04CDD4565),
helpstring("Event interface for Button Control") ]
dispinterface _DButtonEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CButtonCtrl)
[id(DISPID_CLICK)] void Click();
//}}AFX_ODL_EVENT
};
// Class information for CButtonCtrl
[ uuid(BC9C5A86-C896-11D4-AF14-00E04CDD4565),
helpstring("Button Control"), control ]
coclass Button
{
[default] dispinterface _DButton;
[default, source] dispinterface _DButtonEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -