📄 demo_all.idl
字号:
// Demo_all.idl : IDL source for Demo_all.exe
//
// This file will be processed by the MIDL tool to
// produce the type library (Demo_all.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"
[
object,
uuid(069C6076-A213-41C0-BB55-2520A27CC9BA),
dual,
helpstring("IT1 Interface"),
pointer_default(unique)
]
interface IT1 : IDispatch
{
[propput, id(DISPID_FILLCOLOR)]
HRESULT FillColor([in]OLE_COLOR clr);
[propget, id(DISPID_FILLCOLOR)]
HRESULT FillColor([out, retval]OLE_COLOR* pclr);
[propputref, id(DISPID_FONT)]
HRESULT Font([in]IFontDisp* pFont);
[propput, id(DISPID_FONT)]
HRESULT Font([in]IFontDisp* pFont);
[propget, id(DISPID_FONT)]
HRESULT Font([out, retval]IFontDisp** ppFont);
};
[
uuid(963A7A46-7371-465B-B5E9-412F974CEA17),
version(1.0),
helpstring("Demo_all 1.0 Type Library")
]
library Demo_allLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(ED14F48E-E838-4B51-A52F-E790613F3170),
helpstring("T1 Class")
]
coclass T1
{
[default] interface IT1;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -