?? 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 + -