home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activexcontrol / webimage / wimg.odl < prev    next >
Text File  |  1997-10-12  |  3KB  |  99 lines

  1. //=--------------------------------------------------------------------------=
  2. // WImg.ODL
  3. //=--------------------------------------------------------------------------=
  4. // Copyright 1995 - 1997 Microsoft Corporation.  All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. //
  12. // ODL file for the control(s) and automation object(s) in this inproc server
  13. //
  14. #include <olectl.h>
  15. #include <internet.h>
  16. #include "dispids.h"
  17.  
  18. // can't include oaidl.h, so this will have to do
  19. //
  20. #ifndef DISPID_NEWENUM
  21. #define DISPID_NEWENUM -4
  22. #endif // DISPID_NEWENUM
  23.  
  24.  
  25. //=--------------------------------------------------------------------------=
  26. // the libid for this type libray
  27. //
  28. [
  29.     uuid(b92bb5c0-2e73-11cf-b6cf-00aa00a74daf),
  30.     helpstring("WebImage Control Library"),
  31.     lcid(0x0000),
  32.     version(1.0)
  33. ]
  34. library WebImageObjects {
  35.  
  36.     // standard imports
  37.     //
  38.     importlib("STDOLE2.TLB");
  39.     importlib(STDTYPE_TLB);
  40.  
  41.  
  42.     // primary dispatch interface for CWebImage control
  43.     //
  44.     [
  45.         uuid(bb1a1840-2e73-11cf-b6cf-00aa00a74daf),
  46.                 helpstring("WebImage Control"),
  47.         hidden,
  48.         dual,
  49.         odl
  50.     ]
  51.     interface IWebImage : IDispatch {
  52.  
  53.         // properties
  54.         //
  55.  
  56.         [id(DISPID_BMPPATH), propget]
  57.             HRESULT Image([out, retval] BSTR * path);
  58.         [id(DISPID_BMPPATH), propput]
  59.             HRESULT Image([in] BSTR path);
  60.  
  61.         // methods
  62.         //
  63.         [id(DISPID_ABOUTBOX)]
  64.             void AboutBox(void);
  65.         [id(DISPID_SCRAMBLE)]
  66.             HRESULT Scramble(void);
  67.    
  68.     };
  69.  
  70.     // event interface for CWebImage controls ...
  71.     //
  72.     [
  73.         uuid(bbcb18c0-2e73-11cf-b6cf-00aa00a74daf),
  74.                 helpstring("Event interface for WebImage control"),
  75.         hidden
  76.     ]
  77.     dispinterface DWebImageEvents {
  78.         
  79.         properties:
  80.         
  81.         methods:
  82.         
  83.         [id(DISPID_PROGRESS)]
  84.                 void OnProgress(long percentDone);
  85.  
  86.     };
  87.  
  88.     // coclass for CWebImage controls
  89.     //
  90.     [
  91.         uuid(bd11a280-2e73-11cf-b6cf-00aa00a74daf),
  92.                 helpstring("WebImage control")
  93.     ]
  94.     coclass WebImage {
  95.         [default]         interface IWebImage;
  96.                 [default, source] dispinterface DWebImageEvents;
  97.     };
  98. };
  99.