MainFrm.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__EEF44BEA_C47C_4BBB_9723_2E14BC025EE2__INCLUDED_)
  5. #define AFX_MAINFRM_H__EEF44BEA_C47C_4BBB_9723_2E14BC025EE2__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "DemoTreeCtrl.h"
  10. #include "CPropertyGrid\\PropertyGrid_Includes.h"
  11. class CMainFrame : public CFrameWnd
  12. {
  13. protected:
  14. CSplitterWnd m_wndSplitter1;
  15. CSplitterWnd m_wndSplitter2;
  16. CDemoTreeCtrl m_wndTree; // 树窗口
  17. CPropertyGrid m_wndProperty; // 属性窗口
  18. CEdit m_wndInfo; // 信息窗口
  19. public:
  20. CMainFrame();
  21. DECLARE_DYNCREATE(CMainFrame)
  22. // Attributes
  23. public:
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CMainFrame)
  29. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. public:
  33. virtual ~CMainFrame();
  34. #ifdef _DEBUG
  35. virtual void AssertValid() const;
  36. virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38. // Generated message map functions
  39. protected:
  40. //{{AFX_MSG(CMainFrame)
  41. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  42. afx_msg LRESULT OnTreeSelchanged(WPARAM wParam, LPARAM lParam);
  43. afx_msg LRESULT OnPropertyGridNotify(WPARAM wParam, LPARAM lParam);
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. };
  47. /////////////////////////////////////////////////////////////////////////////
  48. //{{AFX_INSERT_LOCATION}}
  49. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  50. #endif // !defined(AFX_MAINFRM_H__EEF44BEA_C47C_4BBB_9723_2E14BC025EE2__INCLUDED_)