GHCustomDrawView.h
上传用户:zengxf178
上传日期:2007-01-02
资源大小:22k
文件大小:2k
源码类别:

TreeView控件

开发平台:

Visual C++

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