ColorListCtrl.h
资源名称:ROA3.40.rar [点击查看]
上传用户:tianheyiqi
上传日期:2010-04-16
资源大小:282k
文件大小:1k
源码类别:
外挂编程
开发平台:
Visual C++
- #if !defined(AFX_COLORLISTCTRL_H__6135DE78_8215_4D97_966C_92B9D57BBC9A__INCLUDED_)
- #define AFX_COLORLISTCTRL_H__6135DE78_8215_4D97_966C_92B9D57BBC9A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ColorListCtrl.h : header file
- //
- #include "Afxtempl.h"
- /////////////////////////////////////////////////////////////////////////////
- // CColorListCtrl window
- class CColorListCtrl : public CListCtrl
- {
- // Construction
- public:
- CColorListCtrl();
- private:
- struct Color_info
- {
- int nIndex;
- COLORREF bkColor;
- COLORREF textColor;
- } m_ColorInfo;
- CArray<Color_info, Color_info> m_ArrayColorInfo;
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CColorListCtrl)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void SetRowColor(int nIndex, COLORREF bkColor, COLORREF textColor);
- virtual ~CColorListCtrl();
- // Generated message map functions
- afx_msg void OnCustomdrawMyList ( NMHDR* pNMHDR, LRESULT* pResult );
- protected:
- //{{AFX_MSG(CColorListCtrl)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_COLORLISTCTRL_H__6135DE78_8215_4D97_966C_92B9D57BBC9A__INCLUDED_)