提交 | 用户 | age
|
0ed438
|
1 |
|
Q |
2 |
#pragma once
|
|
3 |
|
|
4 |
#include "ViewTree.h"
|
|
5 |
|
418cb3
|
6 |
class CNavToolBar : public CMFCToolBar
|
0ed438
|
7 |
{
|
Q |
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 |
|
418cb3
|
16 |
class CNavView : public CDockablePane
|
0ed438
|
17 |
{
|
Q |
18 |
public:
|
418cb3
|
19 |
CNavView() noexcept;
|
Q |
20 |
virtual ~CNavView();
|
0ed438
|
21 |
|
Q |
22 |
void AdjustLayout();
|
|
23 |
void OnChangeVisualStyle();
|
|
24 |
|
|
25 |
protected:
|
418cb3
|
26 |
CNavToolBar m_wndToolBar;
|
Q |
27 |
CViewTree m_NavViewTree;
|
|
28 |
CImageList m_NavViewImages;
|
0ed438
|
29 |
UINT m_nCurrSort;
|
Q |
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);
|
418cb3
|
51 |
afx_msg void OnNMDblclkNavTree1(NMHDR *pNMHDR, LRESULT *pResult);
|
Q |
52 |
afx_msg void OnNMClkNavTree1(NMHDR *pNMHDR, LRESULT *pResult);
|
0ed438
|
53 |
DECLARE_MESSAGE_MAP()
|
418cb3
|
54 |
public:
|
Q |
55 |
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
|
56 |
int DelayInit();
|
|
57 |
int UpdateDisplay();
|
|
58 |
int nDisplayCount = 0;
|
0ed438
|
59 |
};
|
Q |
60 |
|