CTreeControlBarView.h
上传用户:nbkytg
上传日期:2021-02-14
资源大小:126k
文件大小:2k
源码类别:

工具条

开发平台:

Visual C++

  1. // CTreeControlBarView.h : interface of the CCTreeControlBarView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CTREECONTROLBARVIEW_H__51FAB09D_C589_4CA4_A0B9_8916B37D7D97__INCLUDED_)
  5. #define AFX_CTREECONTROLBARVIEW_H__51FAB09D_C589_4CA4_A0B9_8916B37D7D97__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "CTreeControlBarDoc.h"
  10. #include "MainFrm.h"
  11. class CCTreeControlBarView : public CView
  12. {
  13. protected: // create from serialization only
  14. CCTreeControlBarView();
  15. DECLARE_DYNCREATE(CCTreeControlBarView)
  16. // Attributes
  17. public:
  18. CCTreeControlBarDoc* GetDocument();
  19. // Operations
  20. public:
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CCTreeControlBarView)
  24. public:
  25. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  26. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  27. virtual void OnInitialUpdate();
  28. protected:
  29. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  30. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  31. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. CString m_Title;
  36. void DrawRect(CDC* pDC);
  37. virtual ~CCTreeControlBarView();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. protected:
  43. // Generated message map functions
  44. protected:
  45. //{{AFX_MSG(CCTreeControlBarView)
  46. // NOTE - the ClassWizard will add and remove member functions here.
  47. //    DO NOT EDIT what you see in these blocks of generated code !
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. #ifndef _DEBUG  // debug version in CTreeControlBarView.cpp
  52. inline CCTreeControlBarDoc* CCTreeControlBarView::GetDocument()
  53.    { return (CCTreeControlBarDoc*)m_pDocument; }
  54. #endif
  55. /////////////////////////////////////////////////////////////////////////////
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_CTREECONTROLBARVIEW_H__51FAB09D_C589_4CA4_A0B9_8916B37D7D97__INCLUDED_)