📄 playsong.h
字号:
//{{AFX_INCLUDES()
#include "activemovie3.h"
//}}AFX_INCLUDES
#if !defined(AFX_PLAYSONG_H__B4EA1885_FE82_4CF9_9728_C9FCD8BAACFC__INCLUDED_)
#define AFX_PLAYSONG_H__B4EA1885_FE82_4CF9_9728_C9FCD8BAACFC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Playsong.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPlaysong dialog
class CPlaysong : public CDialog
{
// Construction
public:
CPlaysong(CWnd* pParent = NULL); // standard constructor
~CPlaysong()
{
if(m_pstrFilePath != NULL)
{
delete[] m_pstrFilePath;
m_pstrFilePath = NULL;
}
}
// Dialog Data
//{{AFX_DATA(CPlaysong)
enum { IDD = IDD_Playsong };
CActiveMovie3 m_mediaplay;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPlaysong)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
public:
void SetFilePath(LPCTSTR lpszFilePath, BOOL bFst = false);
void Play(int nIndex);
void SetVolume(BOOL bTurnup = true);
void SetBalance(void);
void PlayNextSong(void);
// Implementation
protected:
int m_nCurrentIndex;
int m_nTotalNum;
CString* m_pstrFilePath;
// Generated message map functions
//{{AFX_MSG(CPlaysong)
virtual BOOL OnInitDialog();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PLAYSONG_H__B4EA1885_FE82_4CF9_9728_C9FCD8BAACFC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -