提交 | 用户 | age
|
0ed438
|
1 |
|
Q |
2 |
#pragma once
|
|
3 |
|
|
4 |
#include "ViewTree.h"
|
|
5 |
|
|
6 |
class CFileViewToolBar : public CMFCToolBar
|
|
7 |
{
|
|
8 |
virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
|
|
9 |
{
|
|
10 |
CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);
|
|
11 |
}
|
|
12 |
|
|
13 |
virtual BOOL AllowShowOnList() const { return FALSE; }
|
|
14 |
};
|
|
15 |
|
|
16 |
class CFileView : public CDockablePane
|
|
17 |
{
|
|
18 |
// 构造
|
|
19 |
public:
|
|
20 |
CFileView() noexcept;
|
|
21 |
|
|
22 |
void AdjustLayout();
|
|
23 |
void OnChangeVisualStyle();
|
|
24 |
|
|
25 |
// 特性
|
|
26 |
protected:
|
|
27 |
|
|
28 |
CViewTree m_wndFileView;
|
|
29 |
CImageList m_FileViewImages;
|
|
30 |
CFileViewToolBar m_wndToolBar;
|
|
31 |
|
|
32 |
protected:
|
|
33 |
void FillFileView();
|
|
34 |
|
|
35 |
// 实现
|
|
36 |
public:
|
|
37 |
virtual ~CFileView();
|
|
38 |
|
|
39 |
protected:
|
|
40 |
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
41 |
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
42 |
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
|
|
43 |
afx_msg void OnProperties();
|
|
44 |
afx_msg void OnFileOpen();
|
|
45 |
afx_msg void OnFileOpenWith();
|
|
46 |
afx_msg void OnDummyCompile();
|
|
47 |
afx_msg void OnEditCut();
|
|
48 |
afx_msg void OnEditCopy();
|
|
49 |
afx_msg void OnEditClear();
|
|
50 |
afx_msg void OnPaint();
|
|
51 |
afx_msg void OnSetFocus(CWnd* pOldWnd);
|
|
52 |
|
|
53 |
DECLARE_MESSAGE_MAP()
|
|
54 |
};
|
|
55 |
|