#pragma once #include "afxwin.h" // CLocalPlayback Dialog //play status typedef enum PLAYSTATUS { STATUS_PLAY=0, STATUS_STOP=1, STATUS_PAUSE=2, STATUS_RECOVER=3, STATUS_FAST=4, STATUS_SLOW=5, STATUS_READY=6 }; class CLocalPlayback : public CDialog { DECLARE_DYNAMIC(CLocalPlayback) public: CLocalPlayback(CWnd* pParent = NULL); // standard constructor virtual ~CLocalPlayback(); // Dialog Data enum { IDD = IDD_DLG_LOCALPLAYBACK }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual BOOL OnInitDialog() ; DECLARE_MESSAGE_MAP() public: CString m_FilePathName; CStatic m_playwindow; int m_nPort; HANDLE m_hPlayThread; bool m_bplaythread; int m_PlayerStatus; int m_FastSpeed; int m_SlowSpeed; static unsigned int StartPlay(LPVOID parm); afx_msg void OnBnClickedButtonOpen(); afx_msg void OnBnClickedButtonPlay(); afx_msg void OnBnClickedButtonStop(); afx_msg void OnClose(); afx_msg void OnBnClickedButtonPause(); afx_msg void OnBnClickedButtonFast(); afx_msg void OnBnClickedButtonSlow(); };