LeftTreeView.h
上传用户:yuxuan88
上传日期:2022-05-09
资源大小:2290k
文件大小:2k
源码类别:

行业应用

开发平台:

Visual C++

  1. #if !defined(AFX_LEFTTREEVIEW_H__A5010FE8_AD1C_466E_BE0A_6AE0F1265707__INCLUDED_)
  2. #define AFX_LEFTTREEVIEW_H__A5010FE8_AD1C_466E_BE0A_6AE0F1265707__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // LeftTreeView.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CLeftTreeView view
  10. //#include "MfcserverDoc.h"
  11. class CLeftTreeView : public CTreeView
  12. {
  13. protected:
  14. CLeftTreeView();           // protected constructor used by dynamic creation
  15. DECLARE_DYNCREATE(CLeftTreeView)
  16. protected:
  17. CImageList m_ImageList;
  18. // Attributes
  19. public:
  20. // Operations
  21. public:
  22. void AddUsersToTree();
  23. void AddUserToTree(CString strSectionName,int nBuildingNum,int nCellNum,int nRoomNum);
  24. // Overrides
  25. // ClassWizard generated virtual function overrides
  26. //{{AFX_VIRTUAL(CLeftTreeView)
  27. public:
  28. virtual void OnInitialUpdate();
  29. protected:
  30. virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. protected:
  34. virtual ~CLeftTreeView();
  35. #ifdef _DEBUG
  36. virtual void AssertValid() const;
  37. virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39. // Generated message map functions
  40. protected:
  41. HTREEITEM m_hHitItem;
  42. HTREEITEM AddCellToTree(HTREEITEM hBuildingItem,int nCellnum);
  43. HTREEITEM AddBuildingToTree(HTREEITEM hSectionItem,int nBuildingnum);
  44. HTREEITEM AddSectionToTree(CString strSectionName);
  45. //{{AFX_MSG(CLeftTreeView)
  46. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  47. afx_msg void OnOperateDelete();
  48. afx_msg void OnUpdateOperateDelete(CCmdUI* pCmdUI);
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. /////////////////////////////////////////////////////////////////////////////
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_LEFTTREEVIEW_H__A5010FE8_AD1C_466E_BE0A_6AE0F1265707__INCLUDED_)