LeftTreeView.h
上传用户:yuxuan88
上传日期:2022-05-09
资源大小:2290k
文件大小:2k
- #if !defined(AFX_LEFTTREEVIEW_H__A5010FE8_AD1C_466E_BE0A_6AE0F1265707__INCLUDED_)
- #define AFX_LEFTTREEVIEW_H__A5010FE8_AD1C_466E_BE0A_6AE0F1265707__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // LeftTreeView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CLeftTreeView view
- //#include "MfcserverDoc.h"
- class CLeftTreeView : public CTreeView
- {
- protected:
- CLeftTreeView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CLeftTreeView)
- protected:
- CImageList m_ImageList;
- // Attributes
- public:
- // Operations
- public:
- void AddUsersToTree();
-
- void AddUserToTree(CString strSectionName,int nBuildingNum,int nCellNum,int nRoomNum);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CLeftTreeView)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CLeftTreeView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
-
- protected:
- HTREEITEM m_hHitItem;
- HTREEITEM AddCellToTree(HTREEITEM hBuildingItem,int nCellnum);
- HTREEITEM AddBuildingToTree(HTREEITEM hSectionItem,int nBuildingnum);
- HTREEITEM AddSectionToTree(CString strSectionName);
- //{{AFX_MSG(CLeftTreeView)
- afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnOperateDelete();
- afx_msg void OnUpdateOperateDelete(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_LEFTTREEVIEW_H__A5010FE8_AD1C_466E_BE0A_6AE0F1265707__INCLUDED_)