ShapeTree.h
上传用户:mosfetic
上传日期:2022-06-16
资源大小:4612k
文件大小:2k
源码类别:

GDI/图象编程

开发平台:

Visual C++

  1. #if !defined(AFX_SHAPETREE_H__AC6D9433_0A57_46AA_8AEA_0A4CAEBAA8BE__INCLUDED_)
  2. #define AFX_SHAPETREE_H__AC6D9433_0A57_46AA_8AEA_0A4CAEBAA8BE__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ShapeTree.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CShapeTree window
  10. class CDrawShape;
  11. class CShapeTree : public CTreeCtrl
  12. {
  13. // Construction
  14. public:
  15. CShapeTree();
  16. // Attributes
  17. public:
  18. HTREEITEM m_hRectRoot;
  19. HTREEITEM m_hEllipseRoot;
  20. HTREEITEM m_hCircleRoot;
  21. HTREEITEM m_hFillRectRoot;
  22. HTREEITEM m_hFillEllipseRoot;
  23. HTREEITEM m_hLineRoot;
  24. int m_iRectNum;
  25. int m_iEllipseNum;
  26. int m_iCircleNum;
  27. int m_iFillRectNum;
  28. int m_iFillEllipseNum;
  29. int m_iLineNum;
  30. CImageList m_lstBitmap;
  31. // Operations
  32. public:
  33. void InsertShape(CDrawShape* pDrawShape, int iIndex);
  34. void MyFormatString(CString& strText, int i);
  35. int GetID(CDrawShape* pDrawShape);
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CShapeTree)
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. public:
  42. virtual ~CShapeTree();
  43. // Generated message map functions
  44. protected:
  45. //{{AFX_MSG(CShapeTree)
  46. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  47. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_SHAPETREE_H__AC6D9433_0A57_46AA_8AEA_0A4CAEBAA8BE__INCLUDED_)