ClassView.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. 
  2. #pragma once
  3. #include "ViewTree.h"
  4. class CClassToolBar : public CMFCToolBar
  5. {
  6. virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
  7. {
  8. CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);
  9. }
  10. virtual BOOL AllowShowOnList() const { return FALSE; }
  11. };
  12. class CClassView : public CDockablePane
  13. {
  14. public:
  15. CClassView() noexcept;
  16. virtual ~CClassView();
  17. void AdjustLayout();
  18. void OnChangeVisualStyle();
  19. protected:
  20. CClassToolBar m_wndToolBar;
  21. CViewTree m_wndClassView;
  22. CImageList m_ClassViewImages;
  23. UINT m_nCurrSort;
  24. void FillClassView();
  25. // 重写
  26. public:
  27. virtual BOOL PreTranslateMessage(MSG* pMsg);
  28. protected:
  29. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  30. afx_msg void OnSize(UINT nType, int cx, int cy);
  31. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  32. afx_msg void OnClassAddMemberFunction();
  33. afx_msg void OnClassAddMemberVariable();
  34. afx_msg void OnClassDefinition();
  35. afx_msg void OnClassProperties();
  36. afx_msg void OnNewFolder();
  37. afx_msg void OnPaint();
  38. afx_msg void OnSetFocus(CWnd* pOldWnd);
  39. afx_msg LRESULT OnChangeActiveTab(WPARAM, LPARAM);
  40. afx_msg void OnSort(UINT id);
  41. afx_msg void OnUpdateSort(CCmdUI* pCmdUI);
  42. DECLARE_MESSAGE_MAP()
  43. };