home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / controls / drawpic / drawpic.odl < prev    next >
Text File  |  1998-03-26  |  2KB  |  68 lines

  1. // DrawPic.odl : type library source for OLE Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (DrawPic.tlb) that will become a resource in
  5. // DrawPic.ocx.
  6.  
  7. #include <olectl.h>
  8.  
  9. [ uuid(57F5A420-A324-11CF-B4A4-444553540000), version(1.0),
  10.   helpstring("DrawPic OLE Control module"), control ]
  11. library DRAWPICLib
  12. {
  13.     importlib(STDOLE_TLB);
  14.     importlib(STDTYPE_TLB);
  15.  
  16.     //  Primary dispatch interface for CDrawPicCtrl
  17.  
  18.     [ uuid(57F5A421-A324-11CF-B4A4-444553540000),
  19.       helpstring("Dispatch interface for DrawPic Control"), hidden ]
  20.     dispinterface _DDrawPic
  21.     {
  22.         properties:
  23.             // NOTE - ClassWizard will maintain property information here.
  24.             //    Use extreme caution when editing this section.
  25.             //{{AFX_ODL_PROP(CDrawPicCtrl)
  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(CDrawPicCtrl)
  32.             [id(1)] boolean AddPicture(IPictureDisp* NewPic);
  33.             [id(2)] void ClearImageList();
  34.             //}}AFX_ODL_METHOD
  35.  
  36.             [id(DISPID_ABOUTBOX)] void AboutBox();
  37.     };
  38.  
  39.     //  Event dispatch interface for CDrawPicCtrl
  40.  
  41.     [ uuid(57F5A422-A324-11CF-B4A4-444553540000),
  42.       helpstring("Event interface for DrawPic Control") ]
  43.     dispinterface _DDrawPicEvents
  44.     {
  45.         properties:
  46.             //  Event interface has no properties
  47.  
  48.         methods:
  49.             // NOTE - ClassWizard will maintain event information here.
  50.             //    Use extreme caution when editing this section.
  51.             //{{AFX_ODL_EVENT(CDrawPicCtrl)
  52.             //}}AFX_ODL_EVENT
  53.     };
  54.  
  55.     //  Class information for CDrawPicCtrl
  56.  
  57.     [ uuid(57F5A423-A324-11CF-B4A4-444553540000),
  58.       helpstring("DrawPic Control"), control ]
  59.     coclass DrawPic
  60.     {
  61.         [default] dispinterface _DDrawPic;
  62.         [default, source] dispinterface _DDrawPicEvents;
  63.     };
  64.  
  65.  
  66.     //{{AFX_APPEND_ODL}}
  67. };
  68.