ShapeTree.h
资源名称:DrawSys.zip [点击查看]
上传用户:mosfetic
上传日期:2022-06-16
资源大小:4612k
文件大小:2k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- #if !defined(AFX_SHAPETREE_H__AC6D9433_0A57_46AA_8AEA_0A4CAEBAA8BE__INCLUDED_)
- #define AFX_SHAPETREE_H__AC6D9433_0A57_46AA_8AEA_0A4CAEBAA8BE__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ShapeTree.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CShapeTree window
- class CDrawShape;
- class CShapeTree : public CTreeCtrl
- {
- // Construction
- public:
- CShapeTree();
- // Attributes
- public:
- HTREEITEM m_hRectRoot;
- HTREEITEM m_hEllipseRoot;
- HTREEITEM m_hCircleRoot;
- HTREEITEM m_hFillRectRoot;
- HTREEITEM m_hFillEllipseRoot;
- HTREEITEM m_hLineRoot;
- int m_iRectNum;
- int m_iEllipseNum;
- int m_iCircleNum;
- int m_iFillRectNum;
- int m_iFillEllipseNum;
- int m_iLineNum;
- CImageList m_lstBitmap;
- // Operations
- public:
- void InsertShape(CDrawShape* pDrawShape, int iIndex);
- void MyFormatString(CString& strText, int i);
- int GetID(CDrawShape* pDrawShape);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CShapeTree)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CShapeTree();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CShapeTree)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SHAPETREE_H__AC6D9433_0A57_46AA_8AEA_0A4CAEBAA8BE__INCLUDED_)