polygon.idl
来自「几个关于网络编程的程序」· IDL 代码 · 共 70 行
IDL
70 行
// Polygon.idl : IDL source for Polygon.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (Polygon.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"
[
object,
uuid(2885EE04-A26B-11D1-B49B-00C04F98EFE0),
dual,
helpstring("IPolyCtl Interface"),
pointer_default(unique)
]
interface IPolyCtl : IDispatch
{
[propput, id(DISPID_FILLCOLOR)]
HRESULT FillColor([in]OLE_COLOR clr);
[propget, id(DISPID_FILLCOLOR)]
HRESULT FillColor([out, retval]OLE_COLOR* pclr);
[propget, id(1), helpstring("property Sides")] HRESULT Sides([out, retval] short *pVal);
[propput, id(1), helpstring("property Sides")] HRESULT Sides([in] short newVal);
};
[
uuid(2885EDF8-A26B-11D1-B49B-00C04F98EFE0),
version(1.0),
helpstring("Polygon 1.0 Type Library")
]
library POLYGONLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(2885EE06-A26B-11D1-B49B-00C04F98EFE0),
helpstring("_IPolyCtlEvents Interface")
]
dispinterface _IPolyCtlEvents
{
properties:
methods:
[id(1), helpstring("method ClickIn")] void ClickIn([in] long x, [in] long y);
[id(2), helpstring("method ClickOut")] void ClickOut([in] long x, [in] long y );
};
[
uuid(2885EE05-A26B-11D1-B49B-00C04F98EFE0),
helpstring("PolyCtl Class")
]
coclass PolyCtl
{
[default] interface IPolyCtl;
[default, source] dispinterface _IPolyCtlEvents;
};
[
uuid(2885EE07-A26B-11D1-B49B-00C04F98EFE0),
helpstring("PolyProp Class")
]
coclass PolyProp
{
interface IUnknown;
};
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?