home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / TIME.PAK / TIME.ODL < prev    next >
Encoding:
Microsoft Object Description Language  |  1997-05-06  |  2.3 KB  |  78 lines

  1. // time.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 (time.tlb) that will become a resource in
  5. // time.ocx.
  6.  
  7. // This is a part of the Microsoft Foundation Classes C++ library.
  8. // Copyright (C) 1992-1994 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(DCF07690-BA7A-101A-B57A-0000C0C3ED5F), version(1.0),
  20.   helpstring("Time OLE Custom Control module"), control ]
  21. library TimeLib
  22. {
  23.     importlib(STDOLE_TLB);
  24.     importlib(STDTYPE_TLB);
  25.  
  26.     //  Primary dispatch interface for CTimeCtrl
  27.  
  28.     [ uuid(37446B91-5870-101B-B57B-00608CC96AFA),
  29.       helpstring("Dispatch interface for Time Control"), hidden ]
  30.     dispinterface _DTime
  31.     {
  32.         properties:
  33.             // NOTE - ClassWizard will maintain property information here.
  34.             //    Use extreme caution when editing this section.
  35.             //{{AFX_ODL_PROP(CTimeCtrl)
  36.             [id(1)] short Interval;
  37.             [id(DISPID_ENABLED), bindable, requestedit] boolean Enabled;
  38.             //}}AFX_ODL_PROP
  39.  
  40.         methods:
  41.             // NOTE - ClassWizard will maintain method information here.
  42.             //    Use extreme caution when editing this section.
  43.             //{{AFX_ODL_METHOD(CTimeCtrl)
  44.             //}}AFX_ODL_METHOD
  45.  
  46.             [id(DISPID_ABOUTBOX)] void AboutBox();
  47.     };
  48.  
  49.     //  Event dispatch interface for CTimeCtrl
  50.  
  51.     [ uuid(37446B92-5870-101B-B57B-00608CC96AFA),
  52.       helpstring("Event interface for Time Control") ]
  53.     dispinterface _DTimeEvents
  54.     {
  55.         properties:
  56.             //  Event interface has no properties
  57.  
  58.         methods:
  59.             // NOTE - ClassWizard will maintain event information here.
  60.             //    Use extreme caution when editing this section.
  61.             //{{AFX_ODL_EVENT(CTimeCtrl)
  62.             [id(1)] void Timer();
  63.             //}}AFX_ODL_EVENT
  64.     };
  65.  
  66.     //  Class information for CTimeCtrl
  67.  
  68.     [ uuid(DCF0768D-BA7A-101A-B57A-0000C0C3ED5F),
  69.       helpstring("Time Control"), control ]
  70.     coclass Time
  71.     {
  72.         [default] dispinterface _DTime;
  73.         [default, source] dispinterface _DTimeEvents;
  74.     };
  75.  
  76.     //{{AFX_APPEND_ODL}}
  77. };
  78.