home *** CD-ROM | disk | FTP | other *** search
/ Building OCXs / Building_OCXs_Que_1995.iso / code / ch11 / button.odl < prev    next >
Encoding:
Microsoft Object Description Language  |  1995-01-02  |  1.8 KB  |  67 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. #include <olectl.h>
  8.  
  9. [ uuid(56A2C5A3-240A-11CE-960F-524153480005), version(1.0),
  10.   helpstring("Button OLE Custom Control module") ]
  11. library ButtonLib
  12. {
  13.     importlib(STDOLE_TLB);
  14.     importlib(STDTYPE_TLB);
  15.  
  16.     //  Primary dispatch interface for CButtonCtrl
  17.  
  18.     [ uuid(56A2C5A1-240A-11CE-960F-524153480005),
  19.       helpstring("Dispatch interface for Button Control") ]
  20.     dispinterface _DButton
  21.     {
  22.         properties:
  23.             // NOTE - ClassWizard will maintain property information here.
  24.             //    Use extreme caution when editing this section.
  25.             //{{AFX_ODL_PROP(CButtonCtrl)
  26.             //}}AFX_ODL_PROP
  27.  
  28.         methods:
  29.             // NOTE - ClassWizard will maintain method information here.
  30.             //    Use extreme caution when editing this section.
  31.             //{{AFX_ODL_METHOD(CButtonCtrl)
  32.             //}}AFX_ODL_METHOD
  33.  
  34.             [id(DISPID_ABOUTBOX)] void AboutBox();
  35.     };
  36.  
  37.     //  Event dispatch interface for CButtonCtrl
  38.  
  39.     [ uuid(56A2C5A2-240A-11CE-960F-524153480005),
  40.       helpstring("Event interface for Button Control") ]
  41.     dispinterface _DButtonEvents
  42.     {
  43.         properties:
  44.             //  Event interface has no properties
  45.  
  46.         methods:
  47.             // NOTE - ClassWizard will maintain event information here.
  48.             //    Use extreme caution when editing this section.
  49.             //{{AFX_ODL_EVENT(CButtonCtrl)
  50.             [id(DISPID_CLICK)] void Click();
  51.             //}}AFX_ODL_EVENT
  52.     };
  53.  
  54.     //  Class information for CButtonCtrl
  55.  
  56.     [ uuid(56A2C5A0-240A-11CE-960F-524153480005),
  57.       helpstring("Button Control") ]
  58.     coclass Button
  59.     {
  60.         [default] dispinterface _DButton;
  61.         [default, source] dispinterface _DButtonEvents;
  62.     };
  63.  
  64.  
  65.     //{{AFX_APPEND_ODL}}
  66. };
  67.