Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.5 KiB

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file. If this class is regenerated by
  3. // Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "preview.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CPreview
  8. IMPLEMENT_DYNCREATE(CPreview, CWnd)
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CPreview properties
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPreview operations
  13. void CPreview::ShowFile(LPCTSTR bstrFileName, long iSelectCount)
  14. {
  15. static BYTE parms[] =
  16. VTS_BSTR VTS_I4;
  17. InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  18. bstrFileName, iSelectCount);
  19. }
  20. long CPreview::GetPrintable()
  21. {
  22. long result;
  23. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  24. return result;
  25. }
  26. void CPreview::SetPrintable(long nNewValue)
  27. {
  28. static BYTE parms[] =
  29. VTS_I4;
  30. InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  31. nNewValue);
  32. }
  33. long CPreview::GetCxImage()
  34. {
  35. long result;
  36. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  37. return result;
  38. }
  39. long CPreview::GetCyImage()
  40. {
  41. long result;
  42. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  43. return result;
  44. }
  45. void CPreview::Show(const VARIANT& var)
  46. {
  47. static BYTE parms[] =
  48. VTS_VARIANT;
  49. InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  50. &var);
  51. }