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

  1. // push.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 (push.tlb) that will become a resource in
  5. // push.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(75303866-B925-101A-B57A-0000C0C3ED5F), version(1.0),
  20.   helpstring("Push OLE Custom Control module"), control ]
  21. library PushLib
  22. {
  23.     importlib(STDOLE_TLB);
  24.     importlib(STDTYPE_TLB);
  25.  
  26.     //  Primary dispatch interface for CPushCtrl
  27.  
  28.     [ uuid(37446B86-5870-101B-B57B-00608CC96AFA),
  29.       helpstring("Dispatch interface for Push Control"), hidden ]
  30.     dispinterface _DPush
  31.     {
  32.         properties:
  33.             // NOTE - ClassWizard will maintain property information here.
  34.             //    Use extreme caution when editing this section.
  35.             //{{AFX_ODL_PROP(CPushCtrl)
  36.             [id(DISPID_BORDERSTYLE), bindable, requestedit] short BorderStyle;
  37.             [id(DISPID_CAPTION), bindable, requestedit] BSTR Caption;
  38.             [id(DISPID_ENABLED), bindable, requestedit] boolean Enabled;
  39.             //}}AFX_ODL_PROP
  40.  
  41.         methods:
  42.             // NOTE - ClassWizard will maintain method information here.
  43.             //    Use extreme caution when editing this section.
  44.             //{{AFX_ODL_METHOD(CPushCtrl)
  45.             //}}AFX_ODL_METHOD
  46.  
  47.             [id(DISPID_ABOUTBOX)] void AboutBox();
  48.     };
  49.  
  50.     //  Event dispatch interface for CPushCtrl
  51.  
  52.     [ uuid(37446B87-5870-101B-B57B-00608CC96AFA),
  53.       helpstring("Event interface for Push Control") ]
  54.     dispinterface _DPushEvents
  55.     {
  56.         properties:
  57.             //  Event interface has no properties
  58.  
  59.         methods:
  60.             // NOTE - ClassWizard will maintain event information here.
  61.             //    Use extreme caution when editing this section.
  62.             //{{AFX_ODL_EVENT(CPushCtrl)
  63.             [id(1)] void CustomClick(BSTR lpstrCaption, short cchCaption);
  64.             //}}AFX_ODL_EVENT
  65.     };
  66.  
  67.     //  Class information for CPushCtrl
  68.  
  69.     [ uuid(75303863-B925-101A-B57A-0000C0C3ED5F),
  70.       helpstring("Push Control"), control ]
  71.     coclass Push
  72.     {
  73.         [default] dispinterface _DPush;
  74.         [default, source] dispinterface _DPushEvents;
  75.     };
  76.  
  77.     //{{AFX_APPEND_ODL}}
  78. };
  79.