FileView.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. 
  2. #pragma once
  3. #include "ViewTree.h"
  4. class CFileViewToolBar : 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 CFileView : public CDockablePane
  13. {
  14. // 构造
  15. public:
  16. CFileView() noexcept;
  17. void AdjustLayout();
  18. void OnChangeVisualStyle();
  19. // 特性
  20. protected:
  21. CViewTree m_wndFileView;
  22. CImageList m_FileViewImages;
  23. CFileViewToolBar m_wndToolBar;
  24. protected:
  25. void FillFileView();
  26. // 实现
  27. public:
  28. virtual ~CFileView();
  29. protected:
  30. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  31. afx_msg void OnSize(UINT nType, int cx, int cy);
  32. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  33. afx_msg void OnProperties();
  34. afx_msg void OnFileOpen();
  35. afx_msg void OnFileOpenWith();
  36. afx_msg void OnDummyCompile();
  37. afx_msg void OnEditCut();
  38. afx_msg void OnEditCopy();
  39. afx_msg void OnEditClear();
  40. afx_msg void OnPaint();
  41. afx_msg void OnSetFocus(CWnd* pOldWnd);
  42. DECLARE_MESSAGE_MAP()
  43. };