-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathFileView.h
67 lines (54 loc) · 1.43 KB
/
FileView.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
#pragma once
#include "ViewTree.h"
#include <vector>
#include <list>
class CFileViewToolBar : public CMFCToolBar
{
virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
{
CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);
}
virtual BOOL AllowShowOnList() const { return FALSE; }
};
class CFileView : public CDockablePane
{
// ¹¹Ôì
public:
CFileView();
void AdjustLayout();
void OnChangeVisualStyle();
void TraverseFolder( const CString& strDir,std::list<CString>& listFile );
void FillFileView();
virtual ~CFileView();
// ÌØÐÔ
public:
CViewTree m_wndFileView;
CImageList m_FileViewImages;
CFileViewToolBar m_wndToolBar;
std::vector<CString> mResPaths;
int tempGroup;
HTREEITEM hRoot;
HTREEITEM hMesh;
HTREEITEM hLight;
HTREEITEM hMeshSystem;
HTREEITEM hSound;
HTREEITEM hSoundSystem;
HTREEITEM hParticle;
HTREEITEM hParticleSystem;
HTREEITEM hPhysicsBox;
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnProperties();
afx_msg void OnFileOpen();
afx_msg void OnFileOpenWith();
afx_msg void OnDummyCompile();
afx_msg void OnEditCut();
afx_msg void OnEditCopy();
afx_msg void OnEditClear();
afx_msg void OnPaint();
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnSelChanged(NMHDR* pNMHDR, LRESULT* pResult);
DECLARE_MESSAGE_MAP()
};