86 lines
2.4 KiB
C++
Executable File
86 lines
2.4 KiB
C++
Executable File
#if !defined(AFX_OPENIMAGEFILEDLG_H__A088AC8B_F626_4DF0_A554_B27247882CF5__INCLUDED_)
|
|
#define AFX_OPENIMAGEFILEDLG_H__A088AC8B_F626_4DF0_A554_B27247882CF5__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// OpenImageFileDlg.h : header file
|
|
//
|
|
#include "BmpButton.h"
|
|
#include "ThumbIcon.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// COpenImageFileDlg dialog
|
|
|
|
class COpenImageFileDlg : 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();
|
|
COpenImageFileDlg(CWnd* pParent = NULL); // standard constructor
|
|
~COpenImageFileDlg();
|
|
// Dialog Data
|
|
//{{AFX_DATA(COpenImageFileDlg)
|
|
enum { IDD = IDD_DIALOG_FILEVIEW };
|
|
CBmpButton m_butUp;
|
|
CBmpButton m_butPlay;
|
|
CBmpButton m_butBack;
|
|
CBmpButton m_butExit;
|
|
CBmpButton m_butDown;
|
|
CThumbIcon m_lab6;
|
|
CThumbIcon m_lab5;
|
|
CThumbIcon m_lab4;
|
|
CThumbIcon m_lab3;
|
|
CThumbIcon m_lab2;
|
|
CThumbIcon m_lab1;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(COpenImageFileDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(COpenImageFileDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnBUTTONDown();
|
|
afx_msg void OnButtonExit();
|
|
afx_msg void OnButtonFileback();
|
|
afx_msg void OnButtonPlay();
|
|
afx_msg void OnButtonUp();
|
|
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 BOOL OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_OPENIMAGEFILEDLG_H__A088AC8B_F626_4DF0_A554_B27247882CF5__INCLUDED_)
|