PAL.ODL
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- // pal.odl : type library source for OLE Custom Control project.
- // This file will be processed by the Make Type Library (mktyplib) tool to
- // produce the type library (pal.tlb) that will become a resource in
- // pal.ocx.
- // This is a part of the Microsoft Foundation Classes C++ library.
- // Copyright (C) 1992-1997 Microsoft Corporation
- // All rights reserved.
- //
- // This source code is only intended as a supplement to the
- // Microsoft Foundation Classes Reference and the
- // Books Online documentation provided with the library.
- // See these sources for detailed information regarding the
- // Microsoft Foundation Classes product.
- #include <olectl.h>
- [ uuid(5733F771-BE58-101A-B57A-0000C0C3ED5F), version(1.0),
- helpstring("Pal OLE Custom Control module"), control ]
- library PalLib
- {
- importlib(STDOLE_TLB);
- importlib(STDTYPE_TLB);
- // Primary dispatch interface for CPalCtrl
- [ uuid(37446B83-5870-101B-B57B-00608CC96AFA),
- helpstring("Dispatch interface for Pal Control"), hidden ]
- dispinterface _DPal
- {
- properties:
- // NOTE - ClassWizard will maintain property information here.
- // Use extreme caution when editing this section.
- //{{AFX_ODL_PROP(CPalCtrl)
- [id(1)] short Length;
- [id(2)] OLE_HANDLE Handle;
- [id(3)] IPictureDisp* Picture;
- //}}AFX_ODL_PROP
- methods:
- // NOTE - ClassWizard will maintain method information here.
- // Use extreme caution when editing this section.
- //{{AFX_ODL_METHOD(CPalCtrl)
- [id(4), propget] OLE_COLOR Entry(short nIndex);
- [id(4), propput] void Entry(short nIndex, OLE_COLOR newValue);
- //}}AFX_ODL_METHOD
- [id(DISPID_ABOUTBOX)] void AboutBox();
- };
- // Event dispatch interface for CPalCtrl
- [ uuid(37446B84-5870-101B-B57B-00608CC96AFA),
- helpstring("Event interface for Pal Control") ]
- dispinterface _DPalEvents
- {
- properties:
- // Event interface has no properties
- methods:
- // NOTE - ClassWizard will maintain event information here.
- // Use extreme caution when editing this section.
- //{{AFX_ODL_EVENT(CPalCtrl)
- //}}AFX_ODL_EVENT
- };
- // Class information for CPalCtrl
- [ uuid(5733F76E-BE58-101A-B57A-0000C0C3ED5F),
- helpstring("Pal Control"), control ]
- coclass Pal
- {
- [default] dispinterface _DPal;
- [default, source] dispinterface _DPalEvents;
- };
- //{{AFX_APPEND_ODL}}
- };