gamblerctrl.odl
来自「《VC++ 编程技巧与示例 .rar》各个示例代码绝对可用」· ODL 代码 · 共 78 行
ODL
78 行
// GamblerCtrl.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 (GamblerCtrl.tlb) that will become a resource in
// GamblerCtrl.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(B046B1E5-B07D-11D3-9460-0000000038B2), version(1.0),
helpfile("GamblerCtrl.hlp"),
helpstring("GamblerCtrl ActiveX Control module"),
control ]
library GAMBLERCTRLLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CGamblerCtrlCtrl
[ uuid(B046B1E6-B07D-11D3-9460-0000000038B2),
helpstring("Dispatch interface for GamblerCtrl Control"), hidden ]
dispinterface _DGamblerCtrl
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CGamblerCtrlCtrl)
[id(3)] BSTR Title;
[id(1)] BSTR ShowString;
[id(4)] OLE_COLOR BackColor;
[id(2)] OLE_COLOR PanelColor;
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CGamblerCtrlCtrl)
[id(5)] short GetHint(short guess);
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CGamblerCtrlCtrl
[ uuid(B046B1E7-B07D-11D3-9460-0000000038B2),
helpstring("Event interface for GamblerCtrl Control") ]
dispinterface _DGamblerCtrlEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CGamblerCtrlCtrl)
[id(DISPID_DBLCLICK)] void DblClick();
[id(1)] void GuessRight();
[id(2)] void GuessWrong();
//}}AFX_ODL_EVENT
};
// Class information for CGamblerCtrlCtrl
[ uuid(B046B1E8-B07D-11D3-9460-0000000038B2),
helpstring("GamblerCtrl Control"), control ]
coclass GamblerCtrl
{
[default] dispinterface _DGamblerCtrl;
[default, source] dispinterface _DGamblerCtrlEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?