// GifAnimatePlayer.idl : GifAnimatePlayer 的 IDL 源 // // 此文件将由 MIDL 工具处理以 // 产生类型库(GifAnimatePlayer.tlb)和封送处理代码。 #include "olectl.h" import "oaidl.idl"; import "ocidl.idl"; [ object, uuid(83710A31-9F56-4D5B-A73C-DBE8BFA923BF), dual, nonextensible, helpstring("IGifAnimator 接口"), pointer_default(unique) ] interface IGifAnimator : IDispatch{ [propput, bindable, requestedit, id(DISPID_BACKCOLOR)] HRESULT BackColor([in]OLE_COLOR clr); [propget, bindable, requestedit, id(DISPID_BACKCOLOR)] HRESULT BackColor([out,retval]OLE_COLOR* pclr); [propput, bindable, requestedit, id(DISPID_BACKSTYLE)] HRESULT BackStyle([in]long style); [propget, bindable, requestedit, id(DISPID_BACKSTYLE)] HRESULT BackStyle([out,retval]long* pstyle); [propput, bindable, requestedit, id(DISPID_BORDERCOLOR)] HRESULT BorderColor([in]OLE_COLOR clr); [propget, bindable, requestedit, id(DISPID_BORDERCOLOR)] HRESULT BorderColor([out, retval]OLE_COLOR* pclr); [propput, bindable, requestedit, id(DISPID_BORDERVISIBLE)] HRESULT BorderVisible([in]VARIANT_BOOL vbool); [propget, bindable, requestedit, id(DISPID_BORDERVISIBLE)] HRESULT BorderVisible([out, retval]VARIANT_BOOL* pbool); [id(1), helpstring("方法Play")] HRESULT Play(void); [id(2), helpstring("方法LoadFromFile")] HRESULT LoadFromFile([in] CHAR* szFileName); }; [ uuid(FF28D38F-AF77-44A4-AFD2-9F121A1C1BC8), version(1.0), helpstring("GifAnimatePlayer 1.0 类型库") ] library GifAnimatePlayerLib { importlib("stdole2.tlb"); [ uuid(552D3788-07F7-454C-A43D-A6CAB159920E), helpstring("_IGifAnimatorEvents 接口") ] dispinterface _IGifAnimatorEvents { properties: methods: }; [ uuid(5042F3A6-7C6E-47BD-871F-3E0B00B33B70), control, helpstring("GifAnimator Class") ] coclass GifAnimator { [default] interface IGifAnimator; [default, source] dispinterface _IGifAnimatorEvents; }; };