1 #pragma once
2 
3 #include "PropTree.h"
4 // CPropTreeView view
5 
6 #define IDC_PROPERTYTREE			100
7 
8 class CPropTreeView : public CFormView
9 {
10 	DECLARE_DYNCREATE(CPropTreeView)
11 
12 protected:
13 	CPropTree		m_Tree;
14 
15 protected:
16 	CPropTreeView();           // protected constructor used by dynamic creation
17 	virtual ~CPropTreeView();
18 
19 public:
20 	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
21 #ifdef _DEBUG
22 	virtual void AssertValid() const;
23 	virtual void Dump(CDumpContext& dc) const;
24 #endif
25 
GetPropertyTreeCtrl()26 	CPropTree&	GetPropertyTreeCtrl() { return m_Tree; };
27 
28 protected:
29 	DECLARE_MESSAGE_MAP()
30 
31 public:
32 	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
33 		DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
34 		CCreateContext* pContext = NULL);
35 
36 	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
37 	afx_msg void OnSize(UINT nType, int cx, int cy);
38 	afx_msg void OnPaint();
39 };
40