gps/GPSResources/tcpmp/MediaPlayer/MediaPlayerDlg.h

100 lines
2.3 KiB
C
Raw Normal View History

2019-05-01 12:32:35 +00:00
// MediaPlayerDlg.h : ͷ<>ļ<EFBFBD>
//
#include "BmpButton.h"
#include "BmpProgress.h"
#include "TcpmpPlayer.h"
#pragma once
// <20><>ʱ<EFBFBD><CAB1><EFBFBD>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD>
void PlayerTimeProc(UINT uTimerID,UINT uMsg,DWORD_PTR dwUser,DWORD_PTR dw1,DWORD dw2);
void PlayerNotifyProc(LPVOID pForm, int Id, int Value);
// CMediaPlayerDlg <20>Ի<EFBFBD><D4BB><EFBFBD>
class CMediaPlayerDlg : public CDialog
{
private:
CDC m_BgDC;
CFont m_txtTimeFont;
MMRESULT m_Timer;
bool m_InitDC;
CDC m_MemDC;
CBrush m_blackBrush;
BOOL m_RefreshWnd;
public:
UINT m_Volume;
CString m_CurrentTime;
CString m_CurrentFile;
CString m_CurentDuration;
CTcpmpPlayer m_TcpPlayer;
// <20><><EFBFBD><EFBFBD>
public:
CMediaPlayerDlg(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
~CMediaPlayerDlg();
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
enum { IDD = IDD_MEDIAPLAYER_DIALOG };
#ifdef WIN32_PLATFORM_WFSP
protected: // <20>ؼ<EFBFBD><D8BC><EFBFBD>Ƕ<EFBFBD><C7B6><EFBFBD><EFBFBD>Ա
CCommandBar m_dlgCommandBar;
#endif // WIN32_PLATFORM_WFSP
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
// ʵ<><CAB5>
protected:
HICON m_hIcon;
// <20><><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>Ϣӳ<CFA2><EFBFBD><E4BAAF>
virtual BOOL OnInitDialog();
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
afx_msg void OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/);
#endif
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnPaint();
public:
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
public:
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void DrawVolume(CDC* pDC);
public:
afx_msg void OnBnClickedButtonPlay();
public:
CBmpButton m_butAdd;
CBmpButton m_butVolDec;
CBmpButton m_butSound;
CBmpButton m_butClose;
CBmpButton m_butPlay;
CBmpButton m_butStop;
CBmpButton m_butPre;
CBmpButton m_butNext;
CBmpButton m_butFull;
CBmpProgress m_prgVol;
public:
afx_msg void OnBnClickedButtonStop();
public:
afx_msg void OnBnClickedButtonPre();
public:
afx_msg void OnBnClickedButtonNext();
public:
afx_msg void OnBnClickedButtonFull();
public:
afx_msg void OnBnClickedButtonVolume();
public:
afx_msg void OnBnClickedButtonAddvol();
public:
afx_msg void OnBnClickedButtonDecvol();
public:
afx_msg void OnBnClickedButtonClose();
public:
CString GetFileName(CString sPathName);
public:
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
public:
// afx_msg void OnStnClickedStaticVideo();
public:
// afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
public:
void RefreshControl(void);
};