squiggle.odl
来自「学习VC的一些例子」· ODL 代码 · 共 76 行
ODL
76 行
// Squiggle.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 (Squiggle.tlb) that will become a resource in
// Squiggle.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(14F0D023-8C56-11D5-BB9F-00A0C9E321FD), version(1.0),
helpfile("Squiggle.hlp"),
helpstring("Squiggle ActiveX Control module"),
control ]
library SQUIGGLELib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CSquiggleCtrl
[ uuid(14F0D024-8C56-11D5-BB9F-00A0C9E321FD),
helpstring("Dispatch interface for Squiggle Control"), hidden ]
dispinterface _DSquiggle
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CSquiggleCtrl)
[id(2)] short SquiggleLength;
[id(3)] short NumberSquiggle;
[id(1)] boolean KeepCurrentDrawing;
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CSquiggleCtrl)
[id(DISPID_DOCLICK)] void DoClick();
[id(4)] boolean LoadDrawing(BSTR sFileName);
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CSquiggleCtrl
[ uuid(14F0D025-8C56-11D5-BB9F-00A0C9E321FD),
helpstring("Event interface for Squiggle Control") ]
dispinterface _DSquiggleEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CSquiggleCtrl)
[id(1)] void FileLoaded();
//}}AFX_ODL_EVENT
};
// Class information for CSquiggleCtrl
[ uuid(14F0D026-8C56-11D5-BB9F-00A0C9E321FD),
helpstring("Squiggle Control"), control ]
coclass Squiggle
{
[default] dispinterface _DSquiggle;
[default, source] dispinterface _DSquiggleEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?