activemovie3.cpp
上传用户:sdpcwz
上传日期:2009-12-14
资源大小:1237k
文件大小:13k
源码类别:

书籍源码

开发平台:

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 "activemovie3.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CActiveMovie3
  8. IMPLEMENT_DYNCREATE(CActiveMovie3, CWnd)
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CActiveMovie3 properties
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CActiveMovie3 operations
  13. void CActiveMovie3::AboutBox()
  14. {
  15. InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  16. }
  17. void CActiveMovie3::Run()
  18. {
  19. InvokeHelper(0x60020001, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  20. }
  21. void CActiveMovie3::Pause()
  22. {
  23. InvokeHelper(0x60020002, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  24. }
  25. void CActiveMovie3::Stop()
  26. {
  27. InvokeHelper(0x60020003, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  28. }
  29. long CActiveMovie3::GetImageSourceWidth()
  30. {
  31. long result;
  32. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  33. return result;
  34. }
  35. long CActiveMovie3::GetImageSourceHeight()
  36. {
  37. long result;
  38. InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  39. return result;
  40. }
  41. CString CActiveMovie3::GetAuthor()
  42. {
  43. CString result;
  44. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  45. return result;
  46. }
  47. CString CActiveMovie3::GetTitle()
  48. {
  49. CString result;
  50. InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  51. return result;
  52. }
  53. CString CActiveMovie3::GetCopyright()
  54. {
  55. CString result;
  56. InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  57. return result;
  58. }
  59. CString CActiveMovie3::GetDescription()
  60. {
  61. CString result;
  62. InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  63. return result;
  64. }
  65. CString CActiveMovie3::GetRating()
  66. {
  67. CString result;
  68. InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  69. return result;
  70. }
  71. CString CActiveMovie3::GetFileName()
  72. {
  73. CString result;
  74. InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  75. return result;
  76. }
  77. void CActiveMovie3::SetFileName(LPCTSTR lpszNewValue)
  78. {
  79. static BYTE parms[] =
  80. VTS_BSTR;
  81. InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  82.  lpszNewValue);
  83. }
  84. double CActiveMovie3::GetDuration()
  85. {
  86. double result;
  87. InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  88. return result;
  89. }
  90. double CActiveMovie3::GetCurrentPosition()
  91. {
  92. double result;
  93. InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  94. return result;
  95. }
  96. void CActiveMovie3::SetCurrentPosition(double newValue)
  97. {
  98. static BYTE parms[] =
  99. VTS_R8;
  100. InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  101.  newValue);
  102. }
  103. long CActiveMovie3::GetPlayCount()
  104. {
  105. long result;
  106. InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  107. return result;
  108. }
  109. void CActiveMovie3::SetPlayCount(long nNewValue)
  110. {
  111. static BYTE parms[] =
  112. VTS_I4;
  113. InvokeHelper(0xe, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  114.  nNewValue);
  115. }
  116. double CActiveMovie3::GetSelectionStart()
  117. {
  118. double result;
  119. InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  120. return result;
  121. }
  122. void CActiveMovie3::SetSelectionStart(double newValue)
  123. {
  124. static BYTE parms[] =
  125. VTS_R8;
  126. InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  127.  newValue);
  128. }
  129. double CActiveMovie3::GetSelectionEnd()
  130. {
  131. double result;
  132. InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  133. return result;
  134. }
  135. void CActiveMovie3::SetSelectionEnd(double newValue)
  136. {
  137. static BYTE parms[] =
  138. VTS_R8;
  139. InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  140.  newValue);
  141. }
  142. long CActiveMovie3::GetCurrentState()
  143. {
  144. long result;
  145. InvokeHelper(0x11, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  146. return result;
  147. }
  148. double CActiveMovie3::GetRate()
  149. {
  150. double result;
  151. InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  152. return result;
  153. }
  154. void CActiveMovie3::SetRate(double newValue)
  155. {
  156. static BYTE parms[] =
  157. VTS_R8;
  158. InvokeHelper(0x12, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  159.  newValue);
  160. }
  161. long CActiveMovie3::GetVolume()
  162. {
  163. long result;
  164. InvokeHelper(0x13, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  165. return result;
  166. }
  167. void CActiveMovie3::SetVolume(long nNewValue)
  168. {
  169. static BYTE parms[] =
  170. VTS_I4;
  171. InvokeHelper(0x13, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  172.  nNewValue);
  173. }
  174. long CActiveMovie3::GetBalance()
  175. {
  176. long result;
  177. InvokeHelper(0x14, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  178. return result;
  179. }
  180. void CActiveMovie3::SetBalance(long nNewValue)
  181. {
  182. static BYTE parms[] =
  183. VTS_I4;
  184. InvokeHelper(0x14, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  185.  nNewValue);
  186. }
  187. BOOL CActiveMovie3::GetEnableContextMenu()
  188. {
  189. BOOL result;
  190. InvokeHelper(0x15, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  191. return result;
  192. }
  193. void CActiveMovie3::SetEnableContextMenu(BOOL bNewValue)
  194. {
  195. static BYTE parms[] =
  196. VTS_BOOL;
  197. InvokeHelper(0x15, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  198.  bNewValue);
  199. }
  200. BOOL CActiveMovie3::GetShowDisplay()
  201. {
  202. BOOL result;
  203. InvokeHelper(0x16, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  204. return result;
  205. }
  206. void CActiveMovie3::SetShowDisplay(BOOL bNewValue)
  207. {
  208. static BYTE parms[] =
  209. VTS_BOOL;
  210. InvokeHelper(0x16, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  211.  bNewValue);
  212. }
  213. BOOL CActiveMovie3::GetShowControls()
  214. {
  215. BOOL result;
  216. InvokeHelper(0x17, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  217. return result;
  218. }
  219. void CActiveMovie3::SetShowControls(BOOL bNewValue)
  220. {
  221. static BYTE parms[] =
  222. VTS_BOOL;
  223. InvokeHelper(0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  224.  bNewValue);
  225. }
  226. BOOL CActiveMovie3::GetShowPositionControls()
  227. {
  228. BOOL result;
  229. InvokeHelper(0x18, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  230. return result;
  231. }
  232. void CActiveMovie3::SetShowPositionControls(BOOL bNewValue)
  233. {
  234. static BYTE parms[] =
  235. VTS_BOOL;
  236. InvokeHelper(0x18, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  237.  bNewValue);
  238. }
  239. BOOL CActiveMovie3::GetShowSelectionControls()
  240. {
  241. BOOL result;
  242. InvokeHelper(0x19, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  243. return result;
  244. }
  245. void CActiveMovie3::SetShowSelectionControls(BOOL bNewValue)
  246. {
  247. static BYTE parms[] =
  248. VTS_BOOL;
  249. InvokeHelper(0x19, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  250.  bNewValue);
  251. }
  252. BOOL CActiveMovie3::GetShowTracker()
  253. {
  254. BOOL result;
  255. InvokeHelper(0x1a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  256. return result;
  257. }
  258. void CActiveMovie3::SetShowTracker(BOOL bNewValue)
  259. {
  260. static BYTE parms[] =
  261. VTS_BOOL;
  262. InvokeHelper(0x1a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  263.  bNewValue);
  264. }
  265. BOOL CActiveMovie3::GetEnablePositionControls()
  266. {
  267. BOOL result;
  268. InvokeHelper(0x1b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  269. return result;
  270. }
  271. void CActiveMovie3::SetEnablePositionControls(BOOL bNewValue)
  272. {
  273. static BYTE parms[] =
  274. VTS_BOOL;
  275. InvokeHelper(0x1b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  276.  bNewValue);
  277. }
  278. BOOL CActiveMovie3::GetEnableSelectionControls()
  279. {
  280. BOOL result;
  281. InvokeHelper(0x1c, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  282. return result;
  283. }
  284. void CActiveMovie3::SetEnableSelectionControls(BOOL bNewValue)
  285. {
  286. static BYTE parms[] =
  287. VTS_BOOL;
  288. InvokeHelper(0x1c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  289.  bNewValue);
  290. }
  291. BOOL CActiveMovie3::GetEnableTracker()
  292. {
  293. BOOL result;
  294. InvokeHelper(0x1d, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  295. return result;
  296. }
  297. void CActiveMovie3::SetEnableTracker(BOOL bNewValue)
  298. {
  299. static BYTE parms[] =
  300. VTS_BOOL;
  301. InvokeHelper(0x1d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  302.  bNewValue);
  303. }
  304. BOOL CActiveMovie3::GetAllowHideDisplay()
  305. {
  306. BOOL result;
  307. InvokeHelper(0x1e, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  308. return result;
  309. }
  310. void CActiveMovie3::SetAllowHideDisplay(BOOL bNewValue)
  311. {
  312. static BYTE parms[] =
  313. VTS_BOOL;
  314. InvokeHelper(0x1e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  315.  bNewValue);
  316. }
  317. BOOL CActiveMovie3::GetAllowHideControls()
  318. {
  319. BOOL result;
  320. InvokeHelper(0x1f, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  321. return result;
  322. }
  323. void CActiveMovie3::SetAllowHideControls(BOOL bNewValue)
  324. {
  325. static BYTE parms[] =
  326. VTS_BOOL;
  327. InvokeHelper(0x1f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  328.  bNewValue);
  329. }
  330. long CActiveMovie3::GetDisplayMode()
  331. {
  332. long result;
  333. InvokeHelper(0x20, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  334. return result;
  335. }
  336. void CActiveMovie3::SetDisplayMode(long nNewValue)
  337. {
  338. static BYTE parms[] =
  339. VTS_I4;
  340. InvokeHelper(0x20, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  341.  nNewValue);
  342. }
  343. BOOL CActiveMovie3::GetAllowChangeDisplayMode()
  344. {
  345. BOOL result;
  346. InvokeHelper(0x21, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  347. return result;
  348. }
  349. void CActiveMovie3::SetAllowChangeDisplayMode(BOOL bNewValue)
  350. {
  351. static BYTE parms[] =
  352. VTS_BOOL;
  353. InvokeHelper(0x21, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  354.  bNewValue);
  355. }
  356. LPUNKNOWN CActiveMovie3::GetFilterGraph()
  357. {
  358. LPUNKNOWN result;
  359. InvokeHelper(0x22, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
  360. return result;
  361. }
  362. void CActiveMovie3::SetFilterGraph(LPUNKNOWN newValue)
  363. {
  364. static BYTE parms[] =
  365. VTS_UNKNOWN;
  366. InvokeHelper(0x22, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  367.  newValue);
  368. }
  369. LPDISPATCH CActiveMovie3::GetFilterGraphDispatch()
  370. {
  371. LPDISPATCH result;
  372. InvokeHelper(0x23, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  373. return result;
  374. }
  375. unsigned long CActiveMovie3::GetDisplayForeColor()
  376. {
  377. unsigned long result;
  378. InvokeHelper(0x24, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  379. return result;
  380. }
  381. void CActiveMovie3::SetDisplayForeColor(unsigned long newValue)
  382. {
  383. static BYTE parms[] =
  384. VTS_I4;
  385. InvokeHelper(0x24, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  386.  newValue);
  387. }
  388. unsigned long CActiveMovie3::GetDisplayBackColor()
  389. {
  390. unsigned long result;
  391. InvokeHelper(0x25, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  392. return result;
  393. }
  394. void CActiveMovie3::SetDisplayBackColor(unsigned long newValue)
  395. {
  396. static BYTE parms[] =
  397. VTS_I4;
  398. InvokeHelper(0x25, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  399.  newValue);
  400. }
  401. long CActiveMovie3::GetMovieWindowSize()
  402. {
  403. long result;
  404. InvokeHelper(0x26, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  405. return result;
  406. }
  407. void CActiveMovie3::SetMovieWindowSize(long nNewValue)
  408. {
  409. static BYTE parms[] =
  410. VTS_I4;
  411. InvokeHelper(0x26, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  412.  nNewValue);
  413. }
  414. BOOL CActiveMovie3::GetFullScreenMode()
  415. {
  416. BOOL result;
  417. InvokeHelper(0x27, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  418. return result;
  419. }
  420. void CActiveMovie3::SetFullScreenMode(BOOL bNewValue)
  421. {
  422. static BYTE parms[] =
  423. VTS_BOOL;
  424. InvokeHelper(0x27, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  425.  bNewValue);
  426. }
  427. BOOL CActiveMovie3::GetAutoStart()
  428. {
  429. BOOL result;
  430. InvokeHelper(0x28, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  431. return result;
  432. }
  433. void CActiveMovie3::SetAutoStart(BOOL bNewValue)
  434. {
  435. static BYTE parms[] =
  436. VTS_BOOL;
  437. InvokeHelper(0x28, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  438.  bNewValue);
  439. }
  440. BOOL CActiveMovie3::GetAutoRewind()
  441. {
  442. BOOL result;
  443. InvokeHelper(0x29, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  444. return result;
  445. }
  446. void CActiveMovie3::SetAutoRewind(BOOL bNewValue)
  447. {
  448. static BYTE parms[] =
  449. VTS_BOOL;
  450. InvokeHelper(0x29, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  451.  bNewValue);
  452. }
  453. long CActiveMovie3::GetHWnd()
  454. {
  455. long result;
  456. InvokeHelper(DISPID_HWND, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  457. return result;
  458. }
  459. long CActiveMovie3::GetAppearance()
  460. {
  461. long result;
  462. InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  463. return result;
  464. }
  465. void CActiveMovie3::SetAppearance(long nNewValue)
  466. {
  467. static BYTE parms[] =
  468. VTS_I4;
  469. InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  470.  nNewValue);
  471. }
  472. long CActiveMovie3::GetBorderStyle()
  473. {
  474. long result;
  475. InvokeHelper(0x2a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  476. return result;
  477. }
  478. void CActiveMovie3::SetBorderStyle(long nNewValue)
  479. {
  480. static BYTE parms[] =
  481. VTS_I4;
  482. InvokeHelper(0x2a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  483.  nNewValue);
  484. }
  485. BOOL CActiveMovie3::GetEnabled()
  486. {
  487. BOOL result;
  488. InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  489. return result;
  490. }
  491. void CActiveMovie3::SetEnabled(BOOL bNewValue)
  492. {
  493. static BYTE parms[] =
  494. VTS_BOOL;
  495. InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  496.  bNewValue);
  497. }
  498. BOOL CActiveMovie3::IsSoundCardEnabled()
  499. {
  500. BOOL result;
  501. InvokeHelper(0x35, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  502. return result;
  503. }
  504. long CActiveMovie3::GetReadyState()
  505. {
  506. long result;
  507. InvokeHelper(DISPID_READYSTATE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  508. return result;
  509. }
  510. LPDISPATCH CActiveMovie3::GetMediaPlayer()
  511. {
  512. LPDISPATCH result;
  513. InvokeHelper(0x457, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  514. return result;
  515. }