📄 findfiledlg.h
字号:
/*********************************************************************
Copyright (C) 2000 Smaller Animals Software, Inc.
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
http://www.smalleranimals.com
smallest@smalleranimals.com
**********************************************************************/
#if !defined(AFX_FINDFILEDLG_H__7D455BC3_51E2_11D4_91F8_0080C8DA7A5E__INCLUDED_)
#define AFX_FINDFILEDLG_H__7D455BC3_51E2_11D4_91F8_0080C8DA7A5E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FindFileDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CFindFileDlg dialog
#define WM_BEGIN_SEARCH (WM_APP + 200)
class CFindFileDlg : public CDialog
{
// Construction
public:
CFindFileDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CFindFileDlg)
enum { IDD = IDD_FIND_FILE };
CStatic m_aniIcon;
CString m_csCurFolder;
CString m_csOperation;
//}}AFX_DATA
// setup
CString m_csFindFile; // filename, no path (bob.txt, not c:\temp\bob.txt)
CString m_csRootFolder; // start here. if blank, search all local hard drives, starting with "C:"
bool m_bSearchNetworkDrives; // this ignores network drives by default (m_csRootFolder will override)
bool m_bSearchRemovableDrives; // this ignores non-fixed drives by default (m_csRootFolder will override)
bool m_bSearchCDROMDrives; // this ignores CD-ROM drives by default (m_csRootFolder will override)
bool m_bFindSingleFile; // false = find all files (default), true = stop after first
bool m_bRecurse; // true = recurse subfolders (default), false = don't recurse
CString m_csTitle; // dialog title
// output
CStringArray m_csaFoundFiles; // full paths to files found matching m_csFindFile
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFindFileDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void MsgPump(DWORD dw = 80);
// Generated message map functions
//{{AFX_MSG(CFindFileDlg)
virtual BOOL OnInitDialog();
virtual void OnCancel();
afx_msg void OnStop();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
afx_msg long OnBegin(UINT u, LONG l);
DECLARE_MESSAGE_MAP()
bool m_bInThread;
bool m_bCancel;
int m_iCurIcon;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FINDFILEDLG_H__7D455BC3_51E2_11D4_91F8_0080C8DA7A5E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -