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

  1. // button.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 (button.tlb) that will become a resource in
  5. // button.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(4A8C9992-7713-101B-A5A1-04021C009402), version(1.0),
  20.   helpstring("Button OLE Custom Control module"), control ]
  21. library ButtonLib
  22. {
  23.     importlib(STDOLE_TLB);
  24.     importlib(STDTYPE_TLB);
  25.  
  26.     //  Primary dispatch interface for CButtonCtrl
  27.  
  28.     [ uuid(4A8C9990-7713-101B-A5A1-04021C009402),
  29.       helpstring("Dispatch interface for Button Control"), hidden ]
  30.     dispinterface _DButton
  31.     {
  32.         properties:
  33.             //{{AFX_ODL_PROP(CButtonCtrl)
  34.             [id(DISPID_BORDERSTYLE), bindable, requestedit] short BorderStyle;
  35.             [id(DISPID_CAPTION), bindable, requestedit] BSTR Caption;
  36.             [id(DISPID_ENABLED), bindable, requestedit] boolean Enabled;
  37.             [id(DISPID_FONT), bindable] IFontDisp* Font;
  38.             //}}AFX_ODL_PROP
  39.  
  40.         methods:
  41.             //{{AFX_ODL_METHOD(CButtonCtrl)
  42.             //}}AFX_ODL_METHOD
  43.  
  44.             [id(DISPID_ABOUTBOX)] void AboutBox();
  45.     };
  46.  
  47.     //  Event dispatch interface for CButtonCtrl
  48.  
  49.     [ uuid(4A8C9991-7713-101B-A5A1-04021C009402),
  50.       helpstring("Event interface for Button Control") ]
  51.     dispinterface _DButtonEvents
  52.     {
  53.         properties:
  54.             //  Event interface has no properties
  55.  
  56.         methods:
  57.             //{{AFX_ODL_EVENT(CButtonCtrl)
  58.             [id(DISPID_CLICK)] void Click();
  59.             //}}AFX_ODL_EVENT
  60.     };
  61.  
  62.     //  Class information for CButtonCtrl
  63.  
  64.     [ uuid(4A8C998F-7713-101B-A5A1-04021C009402),
  65.       helpstring("Button Control"), control ]
  66.     coclass Button
  67.     {
  68.         [default] dispinterface _DButton;
  69.         [default, source] dispinterface _DButtonEvents;
  70.     };
  71.  
  72.  
  73.     //{{AFX_APPEND_ODL}}
  74. };
  75.