- // StreamPlayerView.h : interface of the CStreamPlayerView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_STREAMPLAYERVIEW_H__EF96FB64_21A5_49E1_A6A0_3AF05B4B89AA__INCLUDED_)
- #define AFX_STREAMPLAYERVIEW_H__EF96FB64_21A5_49E1_A6A0_3AF05B4B89AA__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- ////include regist dialog header
- #include "ListMenu.h"
- //////////////////////////////////////////
- /// 90.10.14 generated by youngway
- ///****************************************
- /// Playing's Thread Parameter
- //////////////////////////////////////////
- struct ThreadParam
- {
- HWND hWnd_dlg,hWnd_list;
- };
- class CStreamPlayerView : public CView
- {
- protected: // create from serialization only
- CStreamPlayerView();
- DECLARE_DYNCREATE(CStreamPlayerView)
- // Attributes
- public:
- CStreamPlayerDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CStreamPlayerView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CStreamPlayerView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CStreamPlayerView)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnUpdatePlay(CCmdUI* pCmdUI);
- afx_msg void OnCommandPlay();
- afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
- afx_msg void OnCommandStop();
- afx_msg void OnUpdateBUTTONPlay(CCmdUI* pCmdUI);
- afx_msg void OnBUTTONCommandPlay();
- afx_msg void OnUpdateBUTTONStop(CCmdUI* pCmdUI);
- afx_msg void OnBUTTONCommandStop();
- afx_msg void OnUpdateFellscreen(CCmdUI* pCmdUI);
- afx_msg void OnFellscreen();
- afx_msg void OnUpdateBUTTONFullscreen(CCmdUI* pCmdUI);
- afx_msg void OnBUTTONFullscreen();
- afx_msg void OnBUTTONRegistDialog();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- ////include Regist dialog header///////////////////
- protected:
- ListMenu Registdialog;
- /////////////////////////////////////////////////////////
- /// 90.10.14 generated by youngway
- /// ***********************************
- /// =>DXPlay play the choped file
- ///
- /// =>PlayMultipleFiles is the thread for playing (call DXPlay)
- ///
- /// =>Recv is the pther thread for recieve stream
- /////////////////////////////////////////////////////////
- private:
- static bool DXPlay(CHAR *szStr,HWND hWnd);
- static DWORD __stdcall PlayMultipleFiles(void* param);
- static UINT Recv(LPVOID no);
- };
- #ifndef _DEBUG // debug version in StreamPlayerView.cpp
- inline CStreamPlayerDoc* CStreamPlayerView::GetDocument()
- { return (CStreamPlayerDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_STREAMPLAYERVIEW_H__EF96FB64_21A5_49E1_A6A0_3AF05B4B89AA__INCLUDED_)