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

📄 findfilesdlg.h

📁 绝对牛X的多线程文件查找程序
💻 H
字号:
// FindFilesDlg.h : header file
//

#if !defined(__FINDFILESDLG_H__)
#define __FINDFILESDLG_H__

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "FileFinder.h"

/////////////////////////////////////////////////////////////////////////////
// CFindFilesDlg dialog

class CFindFilesDlg : public CDialog
{
// Construction
public:
	CFindFilesDlg(CWnd* pParent = NULL);	// standard constructor

	void	AddFileToList(LPCTSTR szFilename);
	CString	GetListFilename(int nIndex);
	int		FindInList(LPCTSTR szFilename);
	void	SetStatus(int nCount = 0, LPCTSTR szFolder = NULL);

// Dialog Data
	//{{AFX_DATA(CFindFilesDlg)
	enum { IDD = IDD_FINDFILES_DIALOG };
	CListCtrl	m_list;
	BOOL	m_bSize;
	BOOL	m_bSubFolders;
	CString	m_sFileMask;
	long	m_nMaxSize;
	long	m_nMinSize;
	CString	m_sBaseFolder;
	CString	m_sFindText;
	int		m_nSearchType;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFindFilesDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	static void FileFinderProc(CFileFinder *pFinder, DWORD dwCode, void *pCustomParam);

	// Generated message map functions
	//{{AFX_MSG(CFindFilesDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnCheckSize();
	afx_msg void OnSearch();
	virtual void OnCancel();
	afx_msg void OnBrowse();
	afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	CImageList	_imgList;
	bool		_bSearching;
	CFileFinder	_finder;
};

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

#endif // !defined(__FINDFILESDLG_H__)

⌨️ 快捷键说明

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