⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filescan.h

📁 基于EVC开发的图片集文件浏览和图片浏览为一体的程序
💻 H
字号:
#if !defined(AFX_FILESCAN_H__8BDB5447_269B_4DE7_B6DD_39F55E6708DF__INCLUDED_)
#define AFX_FILESCAN_H__8BDB5447_269B_4DE7_B6DD_39F55E6708DF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FileScan.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// FileScan dialog
#define MAX_UNIT 100
#include <vector>
using namespace std;

class FileScan : public CDialog
{
// Construction
public:
	BOOL InRect(int left, int top, int right, int bottom, int px, int py);
	~FileScan();
	FileScan(CWnd* pParent = NULL);   // standard constructor
    BOOL iconflag[6];     //判断是否加入了对应的位图.
	CString filename;
// Dialog Data
	//{{AFX_DATA(FileScan)
	enum { IDD = IDD_FILE_SCAN };
	CListCtrl	m_filelist;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(FileScan)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void FileView();
	void SetFormat(CString format);
	BOOL IsFormat(CString formatflag);
	int  GetMaxLine();
	void splitpath(CString path, CString &ext);
	vector<CString> m_format;
	int i;              // 记录加载了几种格式
	CBitmap m_bg_skim;
	CRect m_rtclose;
	CRect m_rtlastpage;
	CRect m_rtnextpage;
	CRect m_rtopen;
	CRect m_rthelp;

	// Generated message map functions
	//{{AFX_MSG(FileScan)
	afx_msg void OnDblclkFileScan(NMHDR* pNMHDR, LRESULT* pResult);
	virtual BOOL OnInitDialog();
	afx_msg void OnUpward();
	afx_msg void OnForward();
	afx_msg void OnUp();
	afx_msg void OnPaint();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnHelp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CButton * pBtn;
	CImageList LargeImageList;
	vector<CString> m_StringList;
	
	CBitmap bm,bm1,bm2;
	CBitmap bm3,bm4,bm5;
    BOOL mybool[MAX_UNIT];

	CButton* ptnup;		// 上滚按钮
	CButton* ptnfor;	// 下滚按钮
	CButton* ptn;		// 返回上级目录按钮
	
	int itemperline;	// 每行元素个数
	int lineperpage;	// 每页行数
	CString curdir;		// 当前目录
	int curline;		// 当前行号
	int	maxline;		// 当前页最大行数

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FILESCAN_H__8BDB5447_269B_4DE7_B6DD_39F55E6708DF__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -