TreeMenu.h
上传用户:rxhxxy
上传日期:2007-01-02
资源大小:72k
文件大小:2k
源码类别:

TreeView控件

开发平台:

Visual C++

  1. #if !defined(AFX_TREEMENU_H__56B166C1_BF6F_11D1_9247_0080C882060B__INCLUDED_)
  2. #define AFX_TREEMENU_H__56B166C1_BF6F_11D1_9247_0080C882060B__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // CoolTreeMenu.h : header file
  7. //
  8. #include "CoolTreeCtrl.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CTreeMenu window
  11. class CTreeMenu : public CCoolTreeCtrl
  12. {
  13. // Construction
  14. public:
  15. CTreeMenu();
  16. // Attributes
  17. public:
  18. // Operations
  19. public:
  20. // Overrides
  21. // ClassWizard generated virtual function overrides
  22. //{{AFX_VIRTUAL(CTreeMenu)
  23. //}}AFX_VIRTUAL
  24. // Implementation
  25. public:
  26. virtual ~CTreeMenu();
  27. void SetSelBkColor(COLORREF clrSelBkColor) { m_clrSelBkColor = clrSelBkColor;}
  28. void SetSelTextColor(COLORREF clrSelTextColor) { m_clrSelTextColor = clrSelTextColor;}
  29. // Generated message map functions
  30. protected:
  31. COLORREF m_clr3DFace;
  32. COLORREF m_clr3DShadow;
  33. COLORREF m_clr3DDkShadow;
  34. COLORREF m_clr3DLight;
  35. COLORREF m_clr3DHilight;
  36. COLORREF m_clrSelBkColor;
  37. COLORREF m_clrSelTextColor;
  38. CPoint m_point;
  39. //{{AFX_MSG(CTreeMenu)
  40. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  41. afx_msg void OnSelchanging(NMHDR* pNMHDR, LRESULT* pResult);
  42. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  43. //}}AFX_MSG
  44. afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);
  45. afx_msg void OnEndLabelEdit(NMHDR* pNMHDR, LRESULT* pResult);
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. /////////////////////////////////////////////////////////////////////////////
  49. //{{AFX_INSERT_LOCATION}}
  50. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  51. #endif // !defined(AFX_TREEMENU_H__56B166C1_BF6F_11D1_9247_0080C882060B__INCLUDED_)