85 lines
2.3 KiB
C++
Executable File
85 lines
2.3 KiB
C++
Executable File
#if !defined(AFX_MUSICOPENFILEDLG_H__74F5CF2A_404C_4771_BE09_CFC742AF3304__INCLUDED_)
|
|
#define AFX_MUSICOPENFILEDLG_H__74F5CF2A_404C_4771_BE09_CFC742AF3304__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// MusicOpenFileDlg.h : header file
|
|
//
|
|
#include "ThumbIcon.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMusicOpenFileDlg dialog
|
|
|
|
class CMusicOpenFileDlg : public CDialog
|
|
{
|
|
private:
|
|
CDC m_BgDC;
|
|
CFont m_txtFont;
|
|
CStringArray m_FileNames;
|
|
int m_NumberDir; // 当前目录下目录总数
|
|
int m_CurrentPossion; // 当前位置
|
|
CString m_FilePath; // 根目录路径
|
|
CString m_File; // 选择路径
|
|
CString m_TitleTxt;
|
|
// Construction
|
|
public:
|
|
void SetWndTitle(CString sTitle);
|
|
CString GetFilePath();
|
|
void ShowFiles(int iStart);
|
|
bool IsAvailabFormat(CString strFileName);
|
|
void ScanFile();
|
|
CMusicOpenFileDlg(CWnd* pParent = NULL); // standard constructor
|
|
~CMusicOpenFileDlg();
|
|
// Dialog Data
|
|
//{{AFX_DATA(CMusicOpenFileDlg)
|
|
enum { IDD = IDD_DIALOG_FILEVIEW };
|
|
CThumbIcon m_lab6;
|
|
CThumbIcon m_lab5;
|
|
CThumbIcon m_lab4;
|
|
CThumbIcon m_lab3;
|
|
CThumbIcon m_lab2;
|
|
CThumbIcon m_lab1;
|
|
CBitmapButton m_butBack;
|
|
CBitmapButton m_butUp;
|
|
CBitmapButton m_butPlay;
|
|
CBitmapButton m_butExit;
|
|
CBitmapButton m_butDown;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CMusicOpenFileDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CMusicOpenFileDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnButtonMusicBack();
|
|
afx_msg void OnButtonMusicDown();
|
|
afx_msg void OnButtonMusicFile();
|
|
afx_msg void OnButtonMusicPlay();
|
|
afx_msg void OnButtonMusicUp();
|
|
afx_msg void OnButton1();
|
|
afx_msg void OnButton2();
|
|
afx_msg void OnButton3();
|
|
afx_msg void OnButton4();
|
|
afx_msg void OnButton5();
|
|
afx_msg void OnButton6();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_MUSICOPENFILEDLG_H__74F5CF2A_404C_4771_BE09_CFC742AF3304__INCLUDED_)
|