TreeForUsers.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:1k
- // TreeForUsers.h : header file
- #ifndef _TREE_FOR_USER_H
- #define _TREE_FOR_USER_H
- class CTreeForUsers : public CTreeCtrl
- {
- // Construction
- public:
- CTreeForUsers();
- // Attributes
- public:
- BOOL m_bIsUpdating; //flag whether is busy for updating the user list;
- // Operations
- public:
- //update user tree's data.
- void UpdateTreeForUserDatas();
- //find specialed user node on this tree
- void FindSpecialedUser();
- //get current agent detail info.
- bool GetAGInfo(AGINFO &aginfo);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTreeForUsers)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CTreeForUsers();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CTreeForUsers)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnBegindrag(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnDestroy();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CImageList m_imgTree; //tree's image list object.
- HTREEITEM m_hdrag_s,
- m_hdrag_d; //drag node : source / dest node
- };
- #endif //_TREE_FOR_USER_H