PppView.h
Upload User: kjzhanglin
Upload Date: 2021-07-11
Package Size: 31k
Code Size: 2k
Category:

TreeView

Development Platform:

Visual C++

  1. // PppView.h : interface of the CPppView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_PPPVIEW_H__8635E57E_3AFE_447A_8CCB_7B1B97A1BAC3__INCLUDED_)
  5. #define AFX_PPPVIEW_H__8635E57E_3AFE_447A_8CCB_7B1B97A1BAC3__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include"PppDoc.h"
  10. #include"ShengSet.h"
  11. class CPppView : public CFormView
  12. {
  13. protected: // create from serialization only
  14. CPppView();
  15. DECLARE_DYNCREATE(CPppView)
  16. public:
  17. //{{AFX_DATA(CPppView)
  18. enum { IDD = IDD_PPP_FORM };
  19. CTreeCtrl m_treectrl;
  20. //}}AFX_DATA
  21. // Attributes
  22. public:
  23. CPppDoc* GetDocument();
  24. public:
  25.     CShengSet *m_ShengSet;
  26. // Operations
  27. public:
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CPppView)
  31. public:
  32. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  35. virtual void OnInitialUpdate(); // called first time after construct
  36. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  37. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  38. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  39. virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. public:
  43. virtual ~CPppView();
  44. #ifdef _DEBUG
  45. virtual void AssertValid() const;
  46. virtual void Dump(CDumpContext& dc) const;
  47. #endif
  48. protected:
  49. // Generated message map functions
  50. protected:
  51. //{{AFX_MSG(CPppView)
  52. afx_msg void OnSelchangingTree1(NMHDR* pNMHDR, LRESULT* pResult);
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. #ifndef _DEBUG  // debug version in PppView.cpp
  57. inline CPppDoc* CPppView::GetDocument()
  58.    { return (CPppDoc*)m_pDocument; }
  59. #endif
  60. /////////////////////////////////////////////////////////////////////////////
  61. //{{AFX_INSERT_LOCATION}}
  62. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  63. #endif // !defined(AFX_PPPVIEW_H__8635E57E_3AFE_447A_8CCB_7B1B97A1BAC3__INCLUDED_)