-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraspDoc.h
98 lines (80 loc) · 2.43 KB
/
graspDoc.h
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// graspDoc.h : interface of the CGraspDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_GRASPDOC_H__4747BA3D_36B0_11D1_B041_00AA00200BC7__INCLUDED_)
#define AFX_GRASPDOC_H__4747BA3D_36B0_11D1_B041_00AA00200BC7__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CGraspDoc : public CDocument
{
protected: // create from serialization only
CGraspDoc();
DECLARE_DYNCREATE(CGraspDoc)
// Stuff I need for TopTen list
CGraspFileSize* aGraspSize[10];
// Attributes
public:
// Operations
public:
// Member Functions
BOOL ScanDrive();
LONGLONG ScanSubDir(CString strDir, HTREEITEM hParentItem);
BOOL ListFromTree();
BOOL ListFromDir(CString strDir);
int CountRootDirs();
BOOL DeleteDir(CString strDir);
void FindTopTen(HTREEITEM hTreeItem);
// Grasp View Controls
CTreeCtrl *m_pgraspTree;
CListCtrl *m_pgraspList;
// Volume Information
CString m_strDriveLetter;
CString m_strVolumeName;
CString m_strFileSysName;
DWORD m_dwVolumeSerial;
DWORD m_dwMaxFileNameLen;
DWORD m_dwFileSysFlags;
LONGLONG m_llSelectedSize;
LONGLONG m_llDriveSize;
HTREEITEM m_hRootItem;
BOOL m_bDirDisk;
BOOL m_bTopTenShowing;
// Other things
CProgressDlg* m_pdlgProgress;
CString m_strPath;
BOOL m_bScanFlag;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGraspDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CGraspDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
UINT m_nFolderOpen;
UINT m_nFolderClosed;
// Generated message map functions
public:
//{{AFX_MSG(CGraspDoc)
afx_msg void OnFileProperties();
afx_msg void OnGraspRefresh();
afx_msg void OnGraspDirdisk();
afx_msg void OnUpdateGraspDirdisk(CCmdUI* pCmdUI);
afx_msg void OnGraspTopten();
afx_msg void OnUpdateGraspTopTen(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GRASPDOC_H__4747BA3D_36B0_11D1_B041_00AA00200BC7__INCLUDED_)