wmpplayer4.h
上传用户:zbtianhong
上传日期:2022-07-12
资源大小:3707k
文件大小:3k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. #if !defined(AFX_WMPPLAYER4_H__64D7F064_4399_4B83_ABCB_402E17A675CF__INCLUDED_)
  2. #define AFX_WMPPLAYER4_H__64D7F064_4399_4B83_ABCB_402E17A675CF__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  7. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  8. //  Microsoft Visual C++, your modifications will be overwritten.
  9. // Dispatch interfaces referenced by this interface
  10. class CWMPControls;
  11. class CWMPSettings;
  12. class CWMPMedia;
  13. class CWMPMediaCollection;
  14. class CWMPPlaylistCollection;
  15. class CWMPNetwork;
  16. class CWMPPlaylist;
  17. class CWMPCdromCollection;
  18. class CWMPClosedCaption;
  19. class CWMPError;
  20. class CWMPDVD;
  21. class CWMPPlayerApplication;
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CWMPPlayer4 wrapper class
  24. class CWMPPlayer4 : public CWnd
  25. {
  26. protected:
  27. DECLARE_DYNCREATE(CWMPPlayer4)
  28. public:
  29. CLSID const& GetClsid()
  30. {
  31. static CLSID const clsid
  32. = { 0x6bf52a52, 0x394a, 0x11d3, { 0xb1, 0x53, 0x0, 0xc0, 0x4f, 0x79, 0xfa, 0xa6 } };
  33. return clsid;
  34. }
  35. virtual BOOL Create(LPCTSTR lpszClassName,
  36. LPCTSTR lpszWindowName, DWORD dwStyle,
  37. const RECT& rect,
  38. CWnd* pParentWnd, UINT nID,
  39. CCreateContext* pContext = NULL)
  40. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  41.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  42. const RECT& rect, CWnd* pParentWnd, UINT nID,
  43. CFile* pPersist = NULL, BOOL bStorage = FALSE,
  44. BSTR bstrLicKey = NULL)
  45. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  46. pPersist, bStorage, bstrLicKey); }
  47. // Attributes
  48. public:
  49. // Operations
  50. public:
  51. void close();
  52. CString GetUrl();
  53. void SetUrl(LPCTSTR lpszNewValue);
  54. long GetOpenState();
  55. long GetPlayState();
  56. CWMPControls GetControls();
  57. CWMPSettings GetSettings();
  58. CWMPMedia GetCurrentMedia();
  59. void SetCurrentMedia(LPDISPATCH newValue);
  60. CWMPMediaCollection GetMediaCollection();
  61. CWMPPlaylistCollection GetPlaylistCollection();
  62. CString GetVersionInfo();
  63. void launchURL(LPCTSTR bstrURL);
  64. CWMPNetwork GetNetwork();
  65. CWMPPlaylist GetCurrentPlaylist();
  66. void SetCurrentPlaylist(LPDISPATCH newValue);
  67. CWMPCdromCollection GetCdromCollection();
  68. CWMPClosedCaption GetClosedCaption();
  69. BOOL GetIsOnline();
  70. CWMPError GetError();
  71. CString GetStatus();
  72. CWMPDVD GetDvd();
  73. CWMPPlaylist newPlaylist(LPCTSTR bstrName, LPCTSTR bstrURL);
  74. CWMPMedia newMedia(LPCTSTR bstrURL);
  75. BOOL GetEnabled();
  76. void SetEnabled(BOOL bNewValue);
  77. BOOL GetFullScreen();
  78. void SetFullScreen(BOOL bNewValue);
  79. BOOL GetEnableContextMenu();
  80. void SetEnableContextMenu(BOOL bNewValue);
  81. void SetUiMode(LPCTSTR lpszNewValue);
  82. CString GetUiMode();
  83. BOOL GetStretchToFit();
  84. void SetStretchToFit(BOOL bNewValue);
  85. BOOL GetWindowlessVideo();
  86. void SetWindowlessVideo(BOOL bNewValue);
  87. BOOL GetIsRemote();
  88. CWMPPlayerApplication GetPlayerApplication();
  89. void openPlayer(LPCTSTR bstrURL);
  90. };
  91. //{{AFX_INSERT_LOCATION}}
  92. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  93. #endif // !defined(AFX_WMPPLAYER4_H__64D7F064_4399_4B83_ABCB_402E17A675CF__INCLUDED_)