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.

122 lines
2.7 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 "preview3.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CPreview3
  8. IMPLEMENT_DYNCREATE(CPreview3, CWnd)
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CPreview3 properties
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPreview3 operations
  13. void CPreview3::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 CPreview3::GetPrintable()
  21. {
  22. long result;
  23. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  24. return result;
  25. }
  26. void CPreview3::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 CPreview3::GetCxImage()
  34. {
  35. long result;
  36. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  37. return result;
  38. }
  39. long CPreview3::GetCyImage()
  40. {
  41. long result;
  42. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  43. return result;
  44. }
  45. void CPreview3::Show(const VARIANT& var)
  46. {
  47. static BYTE parms[] =
  48. VTS_VARIANT;
  49. InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  50. &var);
  51. }
  52. void CPreview3::Zoom(long iSelectCount)
  53. {
  54. static BYTE parms[] =
  55. VTS_I4;
  56. InvokeHelper(0x60030000, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  57. iSelectCount);
  58. }
  59. void CPreview3::BestFit()
  60. {
  61. InvokeHelper(0x60030001, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  62. }
  63. void CPreview3::ActualSize()
  64. {
  65. InvokeHelper(0x60030002, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  66. }
  67. void CPreview3::SlideShow()
  68. {
  69. InvokeHelper(0x60030003, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  70. }
  71. void CPreview3::Rotate(unsigned long dwAngle)
  72. {
  73. static BYTE parms[] =
  74. VTS_I4;
  75. InvokeHelper(0x60040000, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  76. dwAngle);
  77. }
  78. void CPreview3::IsValidVerb(LPCTSTR bstrVerb)
  79. {
  80. static BYTE parms[] =
  81. VTS_BSTR;
  82. InvokeHelper(0x60040001, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  83. bstrVerb);
  84. }
  85. void CPreview3::Commit()
  86. {
  87. InvokeHelper(0x60040002, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  88. }
  89. void CPreview3::SaveAs(LPCTSTR bstrPath)
  90. {
  91. static BYTE parms[] =
  92. VTS_BSTR;
  93. InvokeHelper(0x60040003, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  94. bstrPath);
  95. }