MyTreeView.h
资源名称:QQ示例源码.rar [点击查看]
上传用户:power_led
上传日期:2013-04-11
资源大小:373k
文件大小:2k
源码类别:
ICQ/即时通讯
开发平台:
Visual C++
- #if !defined(AFX_MYTREEVIEW_H__3B48AB4D_2688_4DD0_A39F_49B96E80A027__INCLUDED_)
- #define AFX_MYTREEVIEW_H__3B48AB4D_2688_4DD0_A39F_49B96E80A027__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MyTreeView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CMyTreeView view
- class CMyTreeView : public CTreeView
- {
- protected:
- CMyTreeView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CMyTreeView)
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyTreeView)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CMyTreeView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- public:
- void OnNewClientIn(Message wParam,LPARAM lParam);
- void OnClientOut(Message wParam, LPARAM lParam);
- void OnChangeRoom(Message wParam,LPARAM lParam);
- void OnSendInPrivate(Message wParam,LPARAM lParam);
- CTreeCtrl & m_Tree;
- CImageList m_ImageList ;
- // Generated message map functions
- protected:
- HTREEITEM m_ParentItem;
- //{{AFX_MSG(CMyTreeView)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnTimer(UINT nIDEvent);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MYTREEVIEW_H__3B48AB4D_2688_4DD0_A39F_49B96E80A027__INCLUDED_)