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

  1. // AccessPict.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 (AccessPict.tlb) that will become a resource in
  5. // AccessPict.ocx.
  6.  
  7. #include <olectl.h>
  8.  
  9. [ uuid(1F4E7C20-C38F-11CE-9611-00AA004A75CF), version(1.0),
  10.   helpstring("AccessPict OLE Custom Control module"), control ]
  11. library ACCESSPICTLib
  12. {
  13.     importlib(STDOLE_TLB);
  14.     importlib(STDTYPE_TLB);
  15.  
  16.     //  Primary dispatch interface for CAccessPictCtrl
  17.  
  18.     [ uuid(1F4E7C21-C38F-11CE-9611-00AA004A75CF),
  19.       helpstring("Dispatch interface for AccessPict Control"), hidden ]
  20.     dispinterface _DAccessPict
  21.     {
  22.         properties:
  23.             // NOTE - ClassWizard will maintain property information here.
  24.             //    Use extreme caution when editing this section.
  25.             //{{AFX_ODL_PROP(CAccessPictCtrl)
  26.             [id(3)] boolean IsAccessObject;
  27.             [id(1)] boolean StretchToFit;
  28.             [id(2)] boolean PreserveRatio;
  29.             [id(4)] IPictureDisp* Picture;
  30.             [id(DISPID_BORDERSTYLE), bindable, requestedit] short BorderStyle;
  31.             [id(DISPID_CAPTION), bindable, requestedit] BSTR Caption;
  32.             [id(DISPID_FONT), bindable] IFontDisp* Font;
  33.             //}}AFX_ODL_PROP
  34.  
  35.         methods:
  36.             // NOTE - ClassWizard will maintain method information here.
  37.             //    Use extreme caution when editing this section.
  38.             //{{AFX_ODL_METHOD(CAccessPictCtrl)
  39.             [id(5)] boolean SetData(VARIANT* pvarData);
  40.             //}}AFX_ODL_METHOD
  41.  
  42.             [id(DISPID_ABOUTBOX)] void AboutBox();
  43.     };
  44.  
  45.     //  Event dispatch interface for CAccessPictCtrl
  46.  
  47.     [ uuid(1F4E7C22-C38F-11CE-9611-00AA004A75CF),
  48.       helpstring("Event interface for AccessPict Control") ]
  49.     dispinterface _DAccessPictEvents
  50.     {
  51.         properties:
  52.             //  Event interface has no properties
  53.  
  54.         methods:
  55.             // NOTE - ClassWizard will maintain event information here.
  56.             //    Use extreme caution when editing this section.
  57.             //{{AFX_ODL_EVENT(CAccessPictCtrl)
  58.             //}}AFX_ODL_EVENT
  59.     };
  60.  
  61.     //  Class information for CAccessPictCtrl
  62.  
  63.     [ uuid(1F4E7C23-C38F-11CE-9611-00AA004A75CF),
  64.       helpstring("AccessPict Control"), control ]
  65.     coclass AccessPict
  66.     {
  67.         [default] dispinterface _DAccessPict;
  68.         [default, source] dispinterface _DAccessPictEvents;
  69.     };
  70.  
  71.  
  72.     //{{AFX_APPEND_ODL}}
  73. };
  74.