📄 backmusic.h
字号:
#include <mmsystem.h>
#pragma message("linking with multimedia library")
#pragma comment(lib, "winmm.lib")
#if !defined(AFX_BACKMUSIC_H__F3800581_6251_4B02_82AE_4432F7AA6FD7__INCLUDED_)
#define AFX_BACKMUSIC_H__F3800581_6251_4B02_82AE_4432F7AA6FD7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// backmusic.h : header file
//
#define WM_PLAYMMSOUND_PLAYFILE WM_USER+301
#define WM_PLAYMMSOUND_CLOSEFILE WM_USER+302
/////////////////////////////////////////////////////////////////////////////
// backmusic thread
class backmusic : public CWinThread
{
DECLARE_DYNCREATE(backmusic)
public:
backmusic(); // protected constructor used by dynamic creation
// Attributes
public:
UINT m_wDeviceID;
MCI_OPEN_PARMS mciOpenParms;
MCI_PLAY_PARMS mciPlayParms;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(backmusic)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~backmusic();
// Generated message map functions
//{{AFX_MSG(backmusic)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
afx_msg void PlaySoundFile(WPARAM wParam, LPARAM lParam);
afx_msg void CloseSoundFile(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BACKMUSIC_H__F3800581_6251_4B02_82AE_4432F7AA6FD7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -