📄 sam_21.odl
字号:
// sam_21.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 (sam_21.tlb) that will become a resource in
// sam_21.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(58C72A46-D633-11D3-9B30-52544C393A8C), version(1.0),
helpfile("sam_21.hlp"),
helpstring("sam_21 ActiveX Control module"),
control ]
library SAM_21Lib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CSam_windowCtrl
[ uuid(58C72A47-D633-11D3-9B30-52544C393A8C),
helpstring("Dispatch interface for Sam_window Control"), hidden ]
dispinterface _DSam_window
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CSam_windowCtrl)
[id(1)] OLE_COLOR TextColor;
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CSam_windowCtrl)
[id(2)] void SetMertial(BSTR pszName, BSTR pszBirth, BSTR pszClass);
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CSam_windowCtrl
[ uuid(58C72A48-D633-11D3-9B30-52544C393A8C),
helpstring("Event interface for Sam_window Control") ]
dispinterface _DSam_windowEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CSam_windowCtrl)
[id(1)] void Timer();
//}}AFX_ODL_EVENT
};
// Class information for CSam_windowCtrl
[ uuid(58C72A49-D633-11D3-9B30-52544C393A8C),
helpstring("Sam_window Control"), control ]
coclass Sam_window
{
[default] dispinterface _DSam_window;
[default, source] dispinterface _DSam_windowEvents;
};
// Primary dispatch interface for CSam_nowindowCtrl
[ uuid(58C72A4B-D633-11D3-9B30-52544C393A8C),
helpstring("Dispatch interface for Sam_nowindow Control"), hidden ]
dispinterface _DSam_nowindow
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CSam_nowindowCtrl)
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CSam_nowindowCtrl)
[id(1)] long DoCalc(long iNum1, long iNum2, boolean fShow);
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CSam_nowindowCtrl
[ uuid(58C72A4C-D633-11D3-9B30-52544C393A8C),
helpstring("Event interface for Sam_nowindow Control") ]
dispinterface _DSam_nowindowEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CSam_nowindowCtrl)
//}}AFX_ODL_EVENT
};
// Class information for CSam_nowindowCtrl
[ uuid(58C72A4D-D633-11D3-9B30-52544C393A8C),
helpstring("Sam_nowindow Control"), control ]
coclass Sam_nowindow
{
[default] dispinterface _DSam_nowindow;
[default, source] dispinterface _DSam_nowindowEvents;
};
// Primary dispatch interface for CSam_editwindowCtrl
[ uuid(58C72A4F-D633-11D3-9B30-52544C393A8C),
helpstring("Dispatch interface for Sam_editwindow Control"), hidden ]
dispinterface _DSam_editwindow
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CSam_editwindowCtrl)
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CSam_editwindowCtrl)
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CSam_editwindowCtrl
[ uuid(58C72A50-D633-11D3-9B30-52544C393A8C),
helpstring("Event interface for Sam_editwindow Control") ]
dispinterface _DSam_editwindowEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CSam_editwindowCtrl)
//}}AFX_ODL_EVENT
};
// Class information for CSam_editwindowCtrl
[ uuid(58C72A51-D633-11D3-9B30-52544C393A8C),
helpstring("Sam_editwindow Control"), control ]
coclass Sam_editwindow
{
[default] dispinterface _DSam_editwindow;
[default, source] dispinterface _DSam_editwindowEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -