playsong.h

来自「点歌系统」· C头文件 代码 · 共 71 行

H
71
字号
//{{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 + =
减小字号Ctrl + -
显示快捷键?