📄 checkdlg.h
字号:
// checkDlg.h : header file
//
#if !defined(AFX_CHECKDLG_H__3DBA1B14_1BF5_49FD_A2CB_A8370E74A90F__INCLUDED_)
#define AFX_CHECKDLG_H__3DBA1B14_1BF5_49FD_A2CB_A8370E74A90F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <vector>
using namespace std;
#include "DlgView.h"
/////////////////////////////////////////////////////////////////////////////
// CCheckDlg dialog
class CCheckDlg : public CDialog
{
// Construction
public:
CCheckDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCheckDlg)
enum { IDD = IDD_CHECK_DIALOG };
CEdit m_edit_path;
CEdit m_edit;
CButton m_btnStop;
CButton m_btnStart;
CButton m_btnSelect;
CProgressCtrl m_prog;
CTreeCtrl m_tree;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCheckDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCheckDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonSelect();
afx_msg void OnButtonStart();
afx_msg void OnButtonStop();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDblclkTree1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void OnOK();
void init();
void test_only();
void AdjustCtrl();
void UpdateBtnState();
bool IsSearching();
void SetStatus(const char* msg);
int GetChildrenCnt(HTREEITEM hItem);
void Report(vector<std::string>& set_file);
private:
static DWORD WINAPI ThreadCheck(LPVOID lpParam);
static int CALLBACK BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
static bool ReadPath(CString& strPath);
static bool WritePath(CString& strPath);
static void DelTmpFile();
private:
CImageList m_imglst;
bool m_bCheck;
bool m_bSearch;
bool m_bStop;
HANDLE m_hThread;
CString m_strPath;
CDlgView m_DlgView;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHECKDLG_H__3DBA1B14_1BF5_49FD_A2CB_A8370E74A90F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -