FileView.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #pragma once
  2. #include "ViewTree.h"
  3. class CFileViewToolBar : public CMFCToolBar
  4. {
  5. virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
  6. {
  7. CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);
  8. }
  9. virtual BOOL AllowShowOnList() const { return FALSE; }
  10. };
  11. class CFileView : public CDockablePane
  12. {
  13. // ¹¹Ôì
  14. public:
  15. CFileView();
  16. void AdjustLayout();
  17. void OnChangeVisualStyle();
  18. // ÊôÐÔ
  19. protected:
  20. CViewTree m_wndFileView;
  21. CImageList m_FileViewImages;
  22. CFileViewToolBar m_wndToolBar;
  23. protected:
  24. void FillFileView();
  25. // ʵÏÖ
  26. public:
  27. virtual ~CFileView();
  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 OnProperties();
  33. afx_msg void OnFileOpen();
  34. afx_msg void OnFileOpenWith();
  35. afx_msg void OnDummyCompile();
  36. afx_msg void OnEditCut();
  37. afx_msg void OnEditCopy();
  38. afx_msg void OnEditClear();
  39. afx_msg void OnPaint();
  40. afx_msg void OnSetFocus(CWnd* pOldWnd);
  41. DECLARE_MESSAGE_MAP()
  42. };