powerplayer.cpp
上传用户:hju612
上传日期:2022-08-09
资源大小:31k
文件大小:4k
源码类别:

P2P编程

开发平台:

Visual C++

  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 "powerplayer.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CPowerPlayer
  8. IMPLEMENT_DYNCREATE(CPowerPlayer, CWnd)
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CPowerPlayer properties
  11. CString CPowerPlayer::GetSrc()
  12. {
  13. CString result;
  14. GetProperty(0x1, VT_BSTR, (void*)&result);
  15. return result;
  16. }
  17. void CPowerPlayer::SetSrc(LPCTSTR propVal)
  18. {
  19. SetProperty(0x1, VT_BSTR, propVal);
  20. }
  21. BOOL CPowerPlayer::GetShowControl()
  22. {
  23. BOOL result;
  24. GetProperty(0x2, VT_BOOL, (void*)&result);
  25. return result;
  26. }
  27. void CPowerPlayer::SetShowControl(BOOL propVal)
  28. {
  29. SetProperty(0x2, VT_BOOL, propVal);
  30. }
  31. BOOL CPowerPlayer::GetAutostart()
  32. {
  33. BOOL result;
  34. GetProperty(0x3, VT_BOOL, (void*)&result);
  35. return result;
  36. }
  37. void CPowerPlayer::SetAutostart(BOOL propVal)
  38. {
  39. SetProperty(0x3, VT_BOOL, propVal);
  40. }
  41. BOOL CPowerPlayer::GetTopmost()
  42. {
  43. BOOL result;
  44. GetProperty(0x4, VT_BOOL, (void*)&result);
  45. return result;
  46. }
  47. void CPowerPlayer::SetTopmost(BOOL propVal)
  48. {
  49. SetProperty(0x4, VT_BOOL, propVal);
  50. }
  51. BOOL CPowerPlayer::GetAutosize()
  52. {
  53. BOOL result;
  54. GetProperty(0x5, VT_BOOL, (void*)&result);
  55. return result;
  56. }
  57. void CPowerPlayer::SetAutosize(BOOL propVal)
  58. {
  59. SetProperty(0x5, VT_BOOL, propVal);
  60. }
  61. CString CPowerPlayer::GetScrollTextURL()
  62. {
  63. CString result;
  64. GetProperty(0x10, VT_BSTR, (void*)&result);
  65. return result;
  66. }
  67. void CPowerPlayer::SetScrollTextURL(LPCTSTR propVal)
  68. {
  69. SetProperty(0x10, VT_BSTR, propVal);
  70. }
  71. CString CPowerPlayer::GetSkinPath()
  72. {
  73. CString result;
  74. GetProperty(0x11, VT_BSTR, (void*)&result);
  75. return result;
  76. }
  77. void CPowerPlayer::SetSkinPath(LPCTSTR propVal)
  78. {
  79. SetProperty(0x11, VT_BSTR, propVal);
  80. }
  81. CString CPowerPlayer::GetLogo()
  82. {
  83. CString result;
  84. GetProperty(0x12, VT_BSTR, (void*)&result);
  85. return result;
  86. }
  87. void CPowerPlayer::SetLogo(LPCTSTR propVal)
  88. {
  89. SetProperty(0x12, VT_BSTR, propVal);
  90. }
  91. CString CPowerPlayer::GetClient()
  92. {
  93. CString result;
  94. GetProperty(0x13, VT_BSTR, (void*)&result);
  95. return result;
  96. }
  97. void CPowerPlayer::SetClient(LPCTSTR propVal)
  98. {
  99. SetProperty(0x13, VT_BSTR, propVal);
  100. }
  101. /////////////////////////////////////////////////////////////////////////////
  102. // CPowerPlayer operations
  103. BOOL CPowerPlayer::Play()
  104. {
  105. BOOL result;
  106. InvokeHelper(0x6, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  107. return result;
  108. }
  109. BOOL CPowerPlayer::Stop()
  110. {
  111. BOOL result;
  112. InvokeHelper(0x7, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  113. return result;
  114. }
  115. BOOL CPowerPlayer::IsPsConnected()
  116. {
  117. BOOL result;
  118. InvokeHelper(0x8, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  119. return result;
  120. }
  121. long CPowerPlayer::GetHWND()
  122. {
  123. long result;
  124. InvokeHelper(0x9, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  125. return result;
  126. }
  127. long CPowerPlayer::GetPlayPosition()
  128. {
  129. long result;
  130. InvokeHelper(0xa, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  131. return result;
  132. }
  133. void CPowerPlayer::GetAuthorString(BSTR* pbstr)
  134. {
  135. static BYTE parms[] =
  136. VTS_PBSTR;
  137. InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  138.  pbstr);
  139. }
  140. void CPowerPlayer::GetTitleString(BSTR* pbstr)
  141. {
  142. static BYTE parms[] =
  143. VTS_PBSTR;
  144. InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  145.  pbstr);
  146. }
  147. long CPowerPlayer::GetPlayDuration()
  148. {
  149. long result;
  150. InvokeHelper(0xd, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  151. return result;
  152. }
  153. BOOL CPowerPlayer::GetFullScreen()
  154. {
  155. BOOL result;
  156. InvokeHelper(0xe, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  157. return result;
  158. }
  159. void CPowerPlayer::SetFullScreen(long bFullScreen)
  160. {
  161. static BYTE parms[] =
  162. VTS_I4;
  163. InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  164.  bFullScreen);
  165. }
  166. void CPowerPlayer::AboutBox()
  167. {
  168. InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  169. }