📄 dialogbarplay.h
字号:
#if !defined(AFX_DIALOGBARPLAY_H__3D5F5447_664E_4451_8D27_4224C2D2CD15__INCLUDED_)
#define AFX_DIALOGBARPLAY_H__3D5F5447_664E_4451_8D27_4224C2D2CD15__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DialogBarPlay.h : header file
//
#include "BtnST.h"
/////////////////////////////////////////////////////////////////////////////
// CDialogBarPlay dialog
class CDialogBarPlay : public CDialogBar
{
// Construction
public:
CDialogBarPlay(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDialogBarPlay)
enum { IDD = IDD_PLAY_BAR };
//}}AFX_DATA
public:
void Play(CString& strMp3Name);
BOOL InitDialog();//对话条不接受WM_INITDIALOG消息,因此需要添加初始化函数
//播放窗口句柄
HWND m_hMp3;
//暂停状态
BOOL m_bPause;
//当前播放文件的绝对路径
CString m_strPath;
//音量
int m_Volume;
//音乐当前和结束位置
LONG m_CurPosition;
LONG m_EndPosition;
//自画播放控制按钮
CButtonST m_btnOpen;
CButtonST m_btnPlay;
CButtonST m_btnPause;
CButtonST m_btnStop;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialogBarPlay)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDialogBarPlay)
afx_msg void OnStop();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnPlay();
afx_msg void OnPause();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIALOGBARPLAY_H__3D5F5447_664E_4451_8D27_4224C2D2CD15__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -