myplayer.h
来自「实现类似千千静听功能的播放器,采用MFC技术,在VC++6.0SP6中实现」· C头文件 代码 · 共 91 行
H
91 行
// MyPlayer.h : main header file for the MYPLAYER application
//
#if !defined(AFX_MYPLAYER_H__FC36D71C_69F2_49FD_85F9_09B776D01580__INCLUDED_)
#define AFX_MYPLAYER_H__FC36D71C_69F2_49FD_85F9_09B776D01580__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
#include "SkinButton.h"
#include "TimeStatic.h"
#include "TransparentStatic.h"
#include "SlideButton.h"
#include "VolumeButton.h"
#include "PlayListDlg.h"
#include "LyricDlg.h"
#include "MenuDlg.h"
#include <vfw.h>
#pragma comment(lib,"vfw32.lib")
/////////////////////////////////////////////////////////////////////////////
// CMyPlayerApp:
// See MyPlayer.cpp for the implementation of this class
#define WM_PLAY WM_USER+1
#define MODE_SINGLE 0
#define MODE_SEQ 1
#define MODE_RAND 2
#define IDI_ICON WM_USER+4
#define MYWM_NOTIFYICON WM_USER+5
//自定义文件结构体
typedef struct _tagfilelist
{
CString strMenu; //文件目录
CString strFileName; //文件名称
}FILELIST, *PFILELIST;
//应用程序类(核心的框架类)
class CMyPlayerApp : public CWinApp
{
public:
//自定义方法和数据
HANDLE m_hMutex;
void SequenceOrder();
void RandOrder();
//自动生成的方法
CMyPlayerApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyPlayerApp)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CMyPlayerApp)
// 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扩展即可,这样其他的文件中只要包含这个头文件就可以使用这些变量
extern CStringArray m_strPlayListArray;
extern CMyPlayerApp theApp;
extern int m_nPlayOrder[2000];
extern int m_nNowPlaying;
extern UINT m_nPlayMode;
extern HWND hAudio;
extern FILELIST fileList[10];
extern int nCurrentList;
extern CString strCurrentDir;
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYPLAYER_H__FC36D71C_69F2_49FD_85F9_09B776D01580__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?