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.

138 lines
2.9 KiB

  1. // Machine generated IDispatch wrapper class(es) created with ClassWizard
  2. #include "stdafx.h"
  3. #include "shimgvw.h"
  4. #ifdef _DEBUG
  5. #define new DEBUG_NEW
  6. #undef THIS_FILE
  7. static char THIS_FILE[] = __FILE__;
  8. #endif
  9. /////////////////////////////////////////////////////////////////////////////
  10. // IPreview properties
  11. /////////////////////////////////////////////////////////////////////////////
  12. // IPreview operations
  13. void IPreview::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 IPreview::GetPrintable()
  21. {
  22. long result;
  23. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  24. return result;
  25. }
  26. void IPreview::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 IPreview::GetCxImage()
  34. {
  35. long result;
  36. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  37. return result;
  38. }
  39. long IPreview::GetCyImage()
  40. {
  41. long result;
  42. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  43. return result;
  44. }
  45. void IPreview::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. /////////////////////////////////////////////////////////////////////////////
  53. // IPreview2 properties
  54. /////////////////////////////////////////////////////////////////////////////
  55. // IPreview2 operations
  56. void IPreview2::ShowFile(LPCTSTR bstrFileName, long iSelectCount)
  57. {
  58. static BYTE parms[] =
  59. VTS_BSTR VTS_I4;
  60. InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  61. bstrFileName, iSelectCount);
  62. }
  63. long IPreview2::GetPrintable()
  64. {
  65. long result;
  66. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  67. return result;
  68. }
  69. void IPreview2::SetPrintable(long nNewValue)
  70. {
  71. static BYTE parms[] =
  72. VTS_I4;
  73. InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  74. nNewValue);
  75. }
  76. long IPreview2::GetCxImage()
  77. {
  78. long result;
  79. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  80. return result;
  81. }
  82. long IPreview2::GetCyImage()
  83. {
  84. long result;
  85. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  86. return result;
  87. }
  88. void IPreview2::Show(const VARIANT& var)
  89. {
  90. static BYTE parms[] =
  91. VTS_VARIANT;
  92. InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  93. &var);
  94. }
  95. void IPreview2::Zoom(long iSelectCount)
  96. {
  97. static BYTE parms[] =
  98. VTS_I4;
  99. InvokeHelper(0x60030000, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  100. iSelectCount);
  101. }
  102. void IPreview2::BestFit()
  103. {
  104. InvokeHelper(0x60030001, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  105. }
  106. void IPreview2::ActualSize()
  107. {
  108. InvokeHelper(0x60030002, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  109. }
  110. void IPreview2::SlideShow()
  111. {
  112. InvokeHelper(0x60030003, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  113. }