66 lines
1.8 KiB
C++
Executable File
66 lines
1.8 KiB
C++
Executable File
// MusicPlayer.h : main header file for the MUSICPLAYER application
|
|
//
|
|
#include "..\Comm\COMM.h"
|
|
#include "Playlist.h"
|
|
|
|
#if !defined(AFX_MUSICPLAYER_H__798473D5_93EB_4BEF_8D29_AB10B1780532__INCLUDED_)
|
|
#define AFX_MUSICPLAYER_H__798473D5_93EB_4BEF_8D29_AB10B1780532__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
#ifndef __AFXWIN_H__
|
|
#error include 'stdafx.h' before including this file for PCH
|
|
#endif
|
|
|
|
#include "resource.h" // main symbols
|
|
|
|
extern CPlaylist g_Playlist;
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMusicPlayerApp:
|
|
// See MusicPlayer.cpp for the implementation of this class
|
|
//
|
|
|
|
class CMusicPlayerApp : public CWinApp
|
|
{
|
|
private:
|
|
int m_Language; // 当前语言
|
|
bool m_IsBeep; // 按钮发音
|
|
HINSTANCE m_ResourceLib; // 多语言句柄
|
|
public:
|
|
int GetRegLanguage(void);
|
|
bool GetRegBeep();
|
|
HINSTANCE LoadLanguageRes(int iLanguage);
|
|
HINSTANCE GetResourceLib(void);
|
|
void PlayMsgSound(int iSound = -1);
|
|
bool GetBeep(void);
|
|
int GetLanguage(void);
|
|
public:
|
|
CMusicPlayerApp();
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CMusicPlayerApp)
|
|
public:
|
|
virtual BOOL InitInstance();
|
|
virtual int ExitInstance();
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
|
|
//{{AFX_MSG(CMusicPlayerApp)
|
|
// NOTE - the ClassWizard will add and remove member functions here.
|
|
// DO NOT EDIT what you see in these blocks of generated code !
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
extern CMusicPlayerApp theApp;
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_MUSICPLAYER_H__798473D5_93EB_4BEF_8D29_AB10B1780532__INCLUDED_)
|