SimplyPlayerDlg.cpp in SimplePlayer.rar
Sponsored links
// SimplyPlayerDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "SimplyPlayer.h"
#include "SimplyPlayerDlg.h"
#include "BrowseDirDialog.h"
/////////////////////
#include "AboutMe.h"
#include "Mp3Tags.h"
////////////////////
//加载WINDOWS视频的头文件
#include "vfw.h"
#include ".\simplyplayerdlg.h"
//自定义消息,用来获取程序图标在托盘里操作时得到的消息通知
#define WM_SHOWTASK WM_USER+1
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// 用于应用程序“关于”菜单项的 CAboutDlg 对话框
/*
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// 对话框数据
enum { IDD = IDD_ABOUTBOX };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()
*/
// CSimplyPlayerDlg 对话框
CSimplyPlayerDlg::CSimplyPlayerDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSimplyPlayerDlg::IDD, pParent)
{
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_Audio = NULL;
//构造全局的存储歌曲路径的链表
head = new FilePath();
head->nItem = 0;
head->m_Path = _T("");
head->next = NULL;
pEnd= head;
//初始化列表框中没有歌曲,num表示当前列表中最后一项
num = 0;
index = 0;
//创建背景画刷
m_brush.CreateSolidBrush( RGB(192, 192 ,192) );
}
CSimplyPlayerDlg::~CSimplyPlayerDlg()
{
delete head;
}
void CSimplyPlayerDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_OPEN, m_Open);
DDX_Control(pDX, IDC_PAUSE, m_Pause);
DDX_Control(pDX, IDC_STOP, m_Stop);
DDX_Control(pDX, IDC_STATUS, m_Status);
DDX_Control(pDX, IDC_FILENAME, m_FileName);
DDX_Control(pDX, IDC_VOLUME, m_Volume);
DDX_Control(pDX, IDC_MUSICLIST, m_AddList);
DD
...
...
... to be continued.
This is a preview. To get the complete source file,
please click here to download the whole source code package.