📄 audioplaydlg.h
字号:
#if !defined(AFX_AUDIOPLAYDLG_H__C0AE1379_F928_4CE7_93A8_99E1B8E9719D__INCLUDED_)
#define AFX_AUDIOPLAYDLG_H__C0AE1379_F928_4CE7_93A8_99E1B8E9719D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AudioPlayDlg.h : header file
//
#include "FileListDlg.h"
#include "Coordinate.h"
#include "skin\\BitmapSlider.h"
#include "../battery/Battery.h"
#include "../battery/PMPMessage.h"
#ifdef TESTPLAYER
#include "player\\Player.h"
#endif
/////////////////////////////////////////////////////////////////////////////
// CAudioPlayDlg dialog
class CAudioPlayDlg : public CDialog
{
// Construction
public:
CAudioPlayDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CAudioPlayDlg)
enum { IDD = IDD_AUDIOPLAY_DIALOG };
CStatic m_smodeRand;
CStatic m_smodeOne;
CStatic m_smodeAll;
CBitmapSlider m_sliderVol;
CBitmapSlider m_sliderPro;
CStatic m_MusicInfo;
CStatic m_Time;
//}}AFX_DATA
SysInfoData *m_SysInfo;
int m_nMax;
int m_nMin;
int m_nPos; //slider position
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAudioPlayDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CAudioPlayDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnClose();
afx_msg void OnPlay();
afx_msg void OnPause();
afx_msg void OnStop();
afx_msg void OnMute();
afx_msg void OnVol();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnNextFile();
afx_msg void OnLastFile();
afx_msg void OnOpenFile();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnMinimize();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnSliderVol();
//}}AFX_MSG
afx_msg LRESULT OnBitmapSliderMoved(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnBitmapSliderMoving(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
CFileListDlg *m_AudioList;
BOOL m_bMute;
BOOL m_bDisplayInfo;
CBattery m_bat;
//music attribution
TCHAR m_chMp3Title[MAX_STRING];
TCHAR m_chMp3Artist[MAX_STRING];
TCHAR m_chMp3Album[MAX_STRING];
TCHAR m_chMp3Remark[MAX_STRING];
int m_nDisplayIdx;
//full file name
TCHAR m_chFileName[MAX_STRING];
DOUBLE m_dDuration;
PLAYMODE m_PlayMode;
LONG m_nVolume;
//slider width
int m_nProWidth;
int m_nVolWidth;
#ifdef TESTPLAYER
CPlayer m_Player;
#endif
CBitmap m_BMPBG;
CBitmap m_BMPModeAll;
CBitmap m_BMPModeOne;
CBitmap m_BMPModeRand;
CBitmapButton m_btnClose;
CBitmapButton m_btnMinimize;
CBitmapButton m_btnPlay;
CBitmapButton m_btnPause;
CBitmapButton m_btnStop;
CBitmapButton m_btnForward;
CBitmapButton m_btnBackward;
CBitmapButton m_btnOpen;
// CBitmapButton m_btnRand;
// CBitmapButton m_btnOne;
// CBitmapButton m_btnAll;
CBitmapButton m_btnVol;
CBitmapButton m_btnMute;
int m_nTimeHour;
int m_nTimeMin;
int m_nTimeSec;
void LoadAndLocateButtons();
void UpdatePlaymode(PLAYMODE mode);
void GetMp3Attr();
void GetAudioDuration();
void AudioPlay();
TCHAR* GetFileName(TCHAR* chFullFileName);
void DisplayTime(TCHAR* TotalTime,TCHAR* CurTime);
void ResetTimeAndSlider();
void LoadPlayMode();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_AUDIOPLAYDLG_H__C0AE1379_F928_4CE7_93A8_99E1B8E9719D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -