-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmptyFileView.h
More file actions
70 lines (54 loc) · 1.97 KB
/
Copy pathEmptyFileView.h
File metadata and controls
70 lines (54 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#pragma once
#include "afxcmn.h"
#include "fileprocess.h"
#include <list>
#include "ShowProcessDlg.h"
#include "ToolTipListCtrl.h"
// CEmptyFileView form view
class CEmptyFileView : public CFormView
{
DECLARE_DYNCREATE(CEmptyFileView)
public:
CEmptyFileView(); // protected constructor used by dynamic creation
virtual ~CEmptyFileView();
static BOOL WINAPI EmptyFileEnumerateFunc (CString& FolderPath, unsigned int FileSize, CTime& CreateTime, CTime& AccessTime, CTime& WriteTime, bool IsSystem, bool IsReadOnly, void* pUserData);
static BOOL WINAPI ExportFoldersToFileFunc (CString& FolderPath, void* pUserData);
public:
enum { IDD = IDD_EMPTYFILEVIEW };
#ifdef _DEBUG
virtual void AssertValid() const;
#ifndef _WIN32_WCE
virtual void Dump(CDumpContext& dc) const;
#endif
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
virtual void OnInitialUpdate();
virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnBnClickedBtnSelectFolder();
afx_msg void OnBnClickedCheckAll();
afx_msg void OnBnClickedCheckSystem();
afx_msg void OnBnClickedCheckReadonly();
afx_msg void OnBnClickedBtnDeleteSelect();
private:
CToolTipListCtrl m_empty_files_list;
CString Yes, No;
std::list<EmptyFileInfo*> m_empty_file_list;
CString folderpath;
BOOL m_check_all;
BOOL m_check_system;
BOOL m_check_readonly;
CShowProcessDlg m_show_dlg;
void ListFolders();
void AdjustListColumnWidth();
void DestoryAll();
BOOL TEmptyFileEnumerateFunc(CString& FolderPath, unsigned int FileSize, CTime& CreateTime, CTime& AccessTime, CTime& WriteTime, bool IsSystem, bool IsReadOnly);
BOOL TExportFoldersToFileFunc (CString& FolderPath);
public:
afx_msg void OnNMDblclkListEmptyFiles(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnExportToFile();
afx_msg void OnNMRClickListEmptyFiles(NMHDR *pNMHDR, LRESULT *pResult);
};