home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / controls / xlist / xlist.odl < prev    next >
Encoding:
Microsoft Object Description Language  |  1998-03-27  |  3.1 KB  |  92 lines

  1. // xlist.odl : type library source for OLE Custom Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (xlist.tlb) that will become a resource in
  5. // xlist.ocx.
  6.  
  7. // This is a part of the Microsoft Foundation Classes C++ library.
  8. // Copyright (C) 1992-1997 Microsoft Corporation
  9. // All rights reserved.
  10. //
  11. // This source code is only intended as a supplement to the
  12. // Microsoft Foundation Classes Reference and the
  13. // Books Online documentation provided with the library.
  14. // See these sources for detailed information regarding the
  15. // Microsoft Foundation Classes product.
  16.  
  17. #include <olectl.h>
  18.  
  19. [ uuid(37446B9C-5870-101B-B57B-00608CC96AFA), version(1.0),
  20.   helpstring("Xlist OLE Custom Control module"), control ]
  21. library XlistLib
  22. {
  23.     importlib(STDOLE_TLB);
  24.     importlib(STDTYPE_TLB);
  25.  
  26.     //  Primary dispatch interface for CXlistCtrl
  27.  
  28.     [ uuid(37446B9A-5870-101B-B57B-00608CC96AFA),
  29.       helpstring("Dispatch interface for Xlist Control"), hidden ]
  30.     dispinterface _DXlist
  31.     {
  32.         properties:
  33.             // NOTE - ClassWizard will maintain property information here.
  34.             //    Use extreme caution when editing this section.
  35.             //{{AFX_ODL_PROP(CXlistCtrl)
  36.             [id(1)] boolean InvertFlag;
  37.             //}}AFX_ODL_PROP
  38.  
  39.         methods:
  40.             // NOTE - ClassWizard will maintain method information here.
  41.             //    Use extreme caution when editing this section.
  42.             //{{AFX_ODL_METHOD(CXlistCtrl)
  43.             [id(7), propget] OLE_COLOR ItemBackColor(short nIndex);
  44.             [id(7), propput] void ItemBackColor(short nIndex, OLE_COLOR newValue);
  45.             [id(8), propget] OLE_COLOR ItemForeColor(short nIndex);
  46.             [id(8), propput] void ItemForeColor(short nIndex, OLE_COLOR newValue);
  47.             [id(9), propget] BSTR ItemText(short nIndex);
  48.             [id(9), propput] void ItemText(short nIndex, BSTR lpszNewValue);
  49.             [id(10), propget] IFontDisp* ItemFont(short nIndex);
  50.             [id(10), propput] void ItemFont(short nIndex, IFontDisp* newValue);
  51.             [id(11), propget] IPictureDisp* ItemPicture(short nIndex);
  52.             [id(11), propput] void ItemPicture(short nIndex, IPictureDisp* newValue);
  53.             [id(2)] void RemoveItem(short nIndex);
  54.             [id(3)] void Clear();
  55.             [id(4)] void AddTextFontItem(short nIndex, BSTR lpstrText, IFontDisp* font);
  56.             [id(5)] void AddTextItem(short nIndex, BSTR lpstrText);
  57.             [id(6)] void AddPicItem(short nIndex, IPictureDisp* pic);
  58.             //}}AFX_ODL_METHOD
  59.  
  60.             [id(DISPID_ABOUTBOX)] void AboutBox();
  61.  
  62.     };
  63.  
  64.     //  Event dispatch interface for CXlistCtrl
  65.  
  66.     [ uuid(37446B9B-5870-101B-B57B-00608CC96AFA),
  67.       helpstring("Event interface for Xlist Control") ]
  68.     dispinterface _DXlistEvents
  69.     {
  70.         properties:
  71.             //  Event interface has no properties
  72.  
  73.         methods:
  74.             // NOTE - ClassWizard will maintain event information here.
  75.             //    Use extreme caution when editing this section.
  76.             //{{AFX_ODL_EVENT(CXlistCtrl)
  77.             //}}AFX_ODL_EVENT
  78.     };
  79.  
  80.     //  Class information for CXlistCtrl
  81.  
  82.     [ uuid(37446B99-5870-101B-B57B-00608CC96AFA),
  83.       helpstring("Xlist Control"), control ]
  84.     coclass Xlist
  85.     {
  86.         [default] dispinterface _DXlist;
  87.         [default, source] dispinterface _DXlistEvents;
  88.     };
  89.  
  90.     //{{AFX_APPEND_ODL}}
  91. };
  92.