StreamPlayerView.h
上传用户:sztlpcb
上传日期:2007-06-09
资源大小:741k
文件大小:3k
源码类别:

IP电话/视频会议

开发平台:

Visual C++

  1. // StreamPlayerView.h : interface of the CStreamPlayerView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_STREAMPLAYERVIEW_H__EF96FB64_21A5_49E1_A6A0_3AF05B4B89AA__INCLUDED_)
  5. #define AFX_STREAMPLAYERVIEW_H__EF96FB64_21A5_49E1_A6A0_3AF05B4B89AA__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. ////include regist dialog header
  10. #include "ListMenu.h"
  11. //////////////////////////////////////////
  12. /// 90.10.14 generated by youngway
  13. ///****************************************
  14. /// Playing's Thread Parameter
  15. //////////////////////////////////////////
  16. struct ThreadParam
  17. {
  18. HWND hWnd_dlg,hWnd_list;
  19. };
  20. class CStreamPlayerView : public CView
  21. {
  22. protected: // create from serialization only
  23. CStreamPlayerView();
  24. DECLARE_DYNCREATE(CStreamPlayerView)
  25. // Attributes
  26. public:
  27. CStreamPlayerDoc* GetDocument();
  28. // Operations
  29. public:
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CStreamPlayerView)
  33. public:
  34. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  36. protected:
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. public:
  40. virtual ~CStreamPlayerView();
  41. #ifdef _DEBUG
  42. virtual void AssertValid() const;
  43. virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45. // Generated message map functions
  46. protected:
  47. //{{AFX_MSG(CStreamPlayerView)
  48. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  49. afx_msg void OnUpdatePlay(CCmdUI* pCmdUI);
  50. afx_msg void OnCommandPlay();
  51. afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
  52. afx_msg void OnCommandStop();
  53. afx_msg void OnUpdateBUTTONPlay(CCmdUI* pCmdUI);
  54. afx_msg void OnBUTTONCommandPlay();
  55. afx_msg void OnUpdateBUTTONStop(CCmdUI* pCmdUI);
  56. afx_msg void OnBUTTONCommandStop();
  57. afx_msg void OnUpdateFellscreen(CCmdUI* pCmdUI);
  58. afx_msg void OnFellscreen();
  59. afx_msg void OnUpdateBUTTONFullscreen(CCmdUI* pCmdUI);
  60. afx_msg void OnBUTTONFullscreen();
  61. afx_msg void OnBUTTONRegistDialog();
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. ////include Regist dialog header///////////////////
  65. protected:
  66. ListMenu Registdialog;
  67. /////////////////////////////////////////////////////////
  68. /// 90.10.14 generated by youngway
  69. /// ***********************************
  70. /// =>DXPlay play the choped file
  71. ///
  72. /// =>PlayMultipleFiles is the thread for playing (call DXPlay)
  73. ///
  74. /// =>Recv is the pther thread for recieve stream
  75. /////////////////////////////////////////////////////////
  76. private:
  77. static bool DXPlay(CHAR *szStr,HWND hWnd);
  78. static DWORD __stdcall PlayMultipleFiles(void* param);
  79. static UINT Recv(LPVOID no);
  80. };
  81. #ifndef _DEBUG  // debug version in StreamPlayerView.cpp
  82. inline CStreamPlayerDoc* CStreamPlayerView::GetDocument()
  83.    { return (CStreamPlayerDoc*)m_pDocument; }
  84. #endif
  85. /////////////////////////////////////////////////////////////////////////////
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  88. #endif // !defined(AFX_STREAMPLAYERVIEW_H__EF96FB64_21A5_49E1_A6A0_3AF05B4B89AA__INCLUDED_)