提交 | 用户 | age
|
65f713
|
1 |
|
Q |
2 |
#pragma once
|
|
3 |
|
|
4 |
#include "ViewTree.h"
|
|
5 |
|
|
6 |
class CNavToolBar : 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 CNavView : public CDockablePane
|
|
17 |
{
|
|
18 |
public:
|
|
19 |
CNavView() noexcept;
|
|
20 |
virtual ~CNavView();
|
|
21 |
|
|
22 |
void AdjustLayout();
|
|
23 |
void OnChangeVisualStyle();
|
|
24 |
|
|
25 |
protected:
|
|
26 |
CNavToolBar m_wndToolBar;
|
|
27 |
CViewTree m_wndNavView;
|
|
28 |
CImageList m_NavViewImages;
|
|
29 |
UINT m_nCurrSort;
|
|
30 |
|
|
31 |
void FillClassView();
|
|
32 |
|
|
33 |
// 重写
|
|
34 |
public:
|
|
35 |
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
36 |
|
|
37 |
protected:
|
|
38 |
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
39 |
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
40 |
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
|
|
41 |
afx_msg void OnClassAddMemberFunction();
|
|
42 |
afx_msg void OnClassAddMemberVariable();
|
|
43 |
afx_msg void OnClassDefinition();
|
|
44 |
afx_msg void OnClassProperties();
|
|
45 |
afx_msg void OnNewFolder();
|
|
46 |
afx_msg void OnPaint();
|
|
47 |
afx_msg void OnSetFocus(CWnd* pOldWnd);
|
|
48 |
afx_msg LRESULT OnChangeActiveTab(WPARAM, LPARAM);
|
|
49 |
afx_msg void OnSort(UINT id);
|
|
50 |
afx_msg void OnUpdateSort(CCmdUI* pCmdUI);
|
|
51 |
|
|
52 |
DECLARE_MESSAGE_MAP()
|
|
53 |
};
|
|
54 |
|