TreeForGrpSend.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:1k
- // TreeForGrpSend.h : header file
- #ifndef _TREE_FOR_GRPSEND_H
- #define _TREE_FOR_GRPSEND_H
- class CTreeForGrpSend : public CTreeCtrl
- {
- // Construction
- public:
- CTreeForGrpSend();
- // Attributes
- public:
- // Operations
- public:
- //get agent information.
- bool GetAGInfoOfItem(HTREEITEM hitem, AGINFO &aginfo);
- //add group node.
- BOOL AddGroup(const char *lpszGroupName);
- //delete group node.
- BOOL DelGroup(const int nGroupId);
- //rename group node.
- BOOL RenameGroup(const int nGroupId, const char *lpszNewGroupName);
- //add one user under someone group item.
- BOOL AddGroupUser(const int nGroupId, const int nGroupUserId);
- //delete one user under someone group item.
- BOOL DelGroupUser(const int nGroupId, const int nGroupUserId);
- //update user tree's data.
- void UpdateTreeForUserDatas();
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTreeForGrpSend)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CTreeForGrpSend();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CTreeForGrpSend)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CImageList m_imgTree; //tree's image list object.
- };
- #endif // _TREE_FOR_GRPSEND_H