CIRC.IDL
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- // circ.idl : IDL source for circ.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (circ.tlb) and marshalling code.
- //#include <olectl.h>
- #define DISPID_CAPTION (-518)
- #define DISPID_ENABLED (-514)
- #define DISPID_FORECOLOR (-513)
- #define DISPID_BACKCOLOR (-501)
- #define DISPID_FONT (-512)
- import "oaidl.idl";
- import "ocidl.idl";
- typedef [uuid(66504301-BE0F-101A-8BBB-00AA00300CAB), public] DWORD OLE_COLOR;
- [
- uuid(C978F52B-E584-11CF-AF44-00A0C9034837),
- version(1.0),
- helpstring("circ 1.0 Type Library")
- ]
- library CIRCLib
- {
- importlib("stdole2.tlb");
- importlib("stdole32.tlb");
- [
- object,
- uuid(263E4BD7-9C7A-11CF-AEDC-00A0C9034837),
- dual,
- helpstring("ICircCtl Interface"),
- pointer_default(unique)
- ]
- interface ICircCtl : IDispatch
- {
- [propput, id(DISPID_CAPTION)]
- HRESULT Caption([in]BSTR pCaption);
- [propget, id(DISPID_CAPTION)]
- HRESULT Caption([out,retval]BSTR* ppCaption);
- [propput, id(DISPID_ENABLED)]
- HRESULT Enabled([in]VARIANT_BOOL vbool);
- [propget, id(DISPID_ENABLED)]
- HRESULT Enabled([out,retval]VARIANT_BOOL* pbool);
- [propput, id(DISPID_BACKCOLOR)]
- HRESULT BackColor([in]OLE_COLOR clr);
- [propget, id(DISPID_BACKCOLOR)]
- HRESULT BackColor([out,retval]OLE_COLOR* pclr);
- [propput, id(DISPID_FORECOLOR)]
- HRESULT ForeColor([in]OLE_COLOR clr);
- [propget, id(DISPID_FORECOLOR)]
- HRESULT ForeColor([out,retval]OLE_COLOR* pclr);
- [propput, id(DISPID_FONT)]
- HRESULT Font([in]IFontDisp* pFont);
- [propputref, id(DISPID_FONT)]
- HRESULT Font([in]IFontDisp* pFont);
- [propget, id(DISPID_FONT)]
- HRESULT Font([out,retval]IFontDisp** ppFont);
- };
- [
- uuid(19A4FF37-9C7E-11CD-AEDC-00A0C9034837),
- helpstring("Event interface for Circ Control")
- ]
- dispinterface _CircEvents
- {
- properties:
- methods:
- [id(1)] void Click();
- [id(2)] void KeyPress(short KeyAscii);
- };
- [
- uuid(C978F531-E584-11CF-AF44-00A0C9034837),
- helpstring("CircCtl Atl Control")
- ]
- coclass CCircCtl
- {
- [default] interface ICircCtl;
- [default, source] dispinterface _CircEvents;
- };
- };