📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__60F2FE85_79F8_45D5_B25B_283B0FC25D7C__INCLUDED_)
#define AFX_MAINFRM_H__60F2FE85_79F8_45D5_B25B_283B0FC25D7C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SongRecordSet.h"
#include "RightListView.h"
#include "LeftTreeView.h"
#include "vfw.h"
#include "DialogBarPlay.h"
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
CSplitterWnd m_wndSplitter;
CReBar m_wndReBar;
//对话条
CDialogBarPlay m_PlayBar;
//下面的变量是与Add Singer 对话框进行数据交换的
CString m_strPath;//用来保存文件的路径的
CString m_strSinger;//用来保存歌手姓名的
CString m_strClassify;//用于保存音乐类别
CString m_strsex; //用来保存歌手性别
CString m_strComment;//用来保存对于歌手的评价的
CString m_strFN; //用来保存文件的名字
//标签对象
//说明mp3文件的最后128字节存放着ID3V1标签
struct MP3_TAG_ID1
{
char header[3]; //标签头
char title[30]; //歌曲标题
char artist[30]; //艺术家
char album[30]; //专辑
char year[4]; //出版年代
char comment[30]; //歌曲备注,可以通过在Add Singer 对话框中的备注别选中启用来改变
char genre[1]; //流派
}m_tagID1;
// Operations
public:
void AddToDb(CSongRecordSet &db, MP3_TAG_ID1 &tagID1);
void ReagTag(HANDLE hFile,DWORD fileSize,MP3_TAG_ID1 &tagID1,UINT uMethod);
void BrowseDir(CString& strDir);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnAddSinger();
afx_msg void OnDelSinger();
afx_msg void OnDelsong();
afx_msg void OnEditsong();
afx_msg void OnQuery();
afx_msg void OnOpenSingle();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__60F2FE85_79F8_45D5_B25B_283B0FC25D7C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -