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

  1. // circ2.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 (circ2.tlb) that will become a resource in
  5. // circ2.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(9DBAFCCD-592F-101B-85CE-00608CEC297B), version(1.0),
  20.   helpstring("Circ2 OLE Custom Control module"), control ]
  21. library Circ2Lib
  22. {
  23.     importlib(STDOLE_TLB);
  24.     importlib(STDTYPE_TLB);
  25.  
  26.     //  Primary dispatch interface for CCirc2Ctrl
  27.  
  28.     [ uuid(9DBAFCCB-592F-101B-85CE-00608CEC297B),
  29.       helpstring("Dispatch interface for Circ2 Control"), hidden ]
  30.     dispinterface _DCirc2
  31.     {
  32.         properties:
  33.             // NOTE - ClassWizard will maintain property information here.
  34.             //    Use extreme caution when editing this section.
  35.             //{{AFX_ODL_PROP(CCirc2Ctrl)
  36.             [id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
  37.             [id(2)] boolean CircleShape;
  38.             [id(3)] short CircleOffset;
  39.             [id(1)] OLE_COLOR FlashColor;
  40.             //}}AFX_ODL_PROP
  41.  
  42.         methods:
  43.             // NOTE - ClassWizard will maintain method information here.
  44.             //    Use extreme caution when editing this section.
  45.             //{{AFX_ODL_METHOD(CCirc2Ctrl)
  46.             //}}AFX_ODL_METHOD
  47.  
  48.             [id(DISPID_ABOUTBOX)] void AboutBox();
  49.     };
  50.  
  51.     //  Event dispatch interface for CCirc2Ctrl
  52.  
  53.     [ uuid(9DBAFCCC-592F-101B-85CE-00608CEC297B),
  54.       helpstring("Event interface for Circ2 Control") ]
  55.     dispinterface _DCirc2Events
  56.     {
  57.         properties:
  58.             //  Event interface has no properties
  59.  
  60.         methods:
  61.             // NOTE - ClassWizard will maintain event information here.
  62.             //    Use extreme caution when editing this section.
  63.             //{{AFX_ODL_EVENT(CCirc2Ctrl)
  64.             [id(1)] void ClickIn(OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
  65.             [id(2)] void ClickOut();
  66.             //}}AFX_ODL_EVENT
  67.     };
  68.  
  69.     //  Class information for CCirc2Ctrl
  70.  
  71.     [ uuid(9DBAFCCA-592F-101B-85CE-00608CEC297B),
  72.       helpstring("Circ2 Control"), control ]
  73.     coclass Circ2
  74.     {
  75.         [default] dispinterface _DCirc2;
  76.         [default, source] dispinterface _DCirc2Events;
  77.     };
  78.  
  79.  
  80.     //{{AFX_APPEND_ODL}}
  81. };
  82.