102 lines
2.2 KiB
C
102 lines
2.2 KiB
C
|
// MusicPlayerDlg.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);
|
|||
|
// CMusicPlayerDlg <20>Ի<EFBFBD><D4BB><EFBFBD>
|
|||
|
class CMusicPlayerDlg : public CDialog
|
|||
|
{
|
|||
|
private:
|
|||
|
CDC m_BgDC;
|
|||
|
CFont m_txtTimeFont;
|
|||
|
CFont m_txtTitleFont;
|
|||
|
CFont m_txtClipFont;
|
|||
|
MMRESULT m_Timer;
|
|||
|
bool m_InitDC;
|
|||
|
CDC m_MemDC;
|
|||
|
public:
|
|||
|
UINT m_Volume;
|
|||
|
CString m_CurrentFile;
|
|||
|
CString m_CurrentTime;
|
|||
|
CString m_CurentDuration;
|
|||
|
CTcpmpPlayer m_TcpPlayer;
|
|||
|
|
|||
|
// <20><><EFBFBD><EFBFBD>
|
|||
|
public:
|
|||
|
CMusicPlayerDlg(CWnd* pParent = NULL); // <20><><EFBFBD><D7BC><EFBFBD>캯<EFBFBD><ECBAAF>
|
|||
|
~CMusicPlayerDlg();
|
|||
|
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
enum { IDD = IDD_MUSICPLAYER_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 BOOL OnEraseBkgnd(CDC* pDC);
|
|||
|
public:
|
|||
|
afx_msg void OnPaint();
|
|||
|
public:
|
|||
|
CBmpButton m_butClose;
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedButtonClose();
|
|||
|
public:
|
|||
|
CBmpButton m_butPlay;
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedButtonPlaypause();
|
|||
|
public:
|
|||
|
CBmpButton m_butStop;
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedButtonStop();
|
|||
|
public:
|
|||
|
CBmpButton m_butPre;
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedButtonPre();
|
|||
|
public:
|
|||
|
CBmpButton m_butNext;
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedButtonNext();
|
|||
|
public:
|
|||
|
CBmpButton m_butAdd;
|
|||
|
public:
|
|||
|
CBmpButton m_butVolDec;
|
|||
|
public:
|
|||
|
CBmpButton m_butSound;
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedButtonSound();
|
|||
|
public:
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
void DrawVolume(CDC* pDC);
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedButtonVoldec();
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedButtonVoladd();
|
|||
|
public:
|
|||
|
CString GetFileName(CString sPathName);
|
|||
|
|
|||
|
public:
|
|||
|
CBmpProgress m_prgFile;
|
|||
|
public:
|
|||
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
|||
|
};
|