123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
-
- #pragma once
- #include "ViewTree.h"
- #include "DrawerCtrl.h"
- #include "NavListCtrl.h"
- class CNavToolBar : public CMFCToolBar
- {
- virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
- {
- CMFCToolBar::OnUpdateCmdUI((CFrameWnd*)GetOwner(), bDisableIfNoHndler);
- }
- virtual BOOL AllowShowOnList() const { return FALSE; }
- };
- class CNavbar : public CDockablePane
- {
- public:
- CNavbar() noexcept;
- virtual ~CNavbar();
- void AdjustLayout();
- void OnChangeVisualStyle();
- protected:
- CNavToolBar m_wndToolBar;
- CViewTree m_wndClassView;
- CImageList m_ClassViewImages;
- UINT m_nCurrSort;
- #if 1
- CImageList m_listImage;
- CDrawerCtrl m_DrawerCtrl;
- CNavListCtrl m_NavQuarter;
- CNavListCtrl m_NavOthers;
- void InitNavCtrl();
- #endif
- // 重写
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- 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 OnClassAddMemberFunction();
- afx_msg void OnClassAddMemberVariable();
- afx_msg void OnClassDefinition();
- afx_msg void OnClassProperties();
- afx_msg void OnNewFolder();
- afx_msg void OnPaint();
- afx_msg void OnSetFocus(CWnd* pOldWnd);
- afx_msg LRESULT OnChangeActiveTab(WPARAM, LPARAM);
- afx_msg void OnSort(UINT id);
- afx_msg void OnUpdateSort(CCmdUI* pCmdUI);
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- };
|