ColorListBox.H
资源名称:GISCode.rar [点击查看]
上传用户:juying163
上传日期:2014-09-24
资源大小:5867k
文件大小:2k
源码类别:
GIS编程
开发平台:
Visual C++
- //以下是头文件
- #if !defined(AFX_COLORLISTBOX_H__5529A6B1_584A_11D2_A41A_006097BD277B__INCLUDED_)
- #define AFX_COLORLISTBOX_H__5529A6B1_584A_11D2_A41A_006097BD277B__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- //*************************************************************
- // ColorListBox.h : header file
- //
- // MFC ListBox with optional color
- //
- // Version: 1.0 01/10/1998 (c)Patrice Godard
- //
- //**************************************************************
- /////////////////////////////////////////////////////////////////////////////
- // CColorListBox window
- class CColorListBox : public CListBox
- {
- // Construction
- public:
- CColorListBox();
- // Attributes
- public:
- // Operations
- public:
- void AddColorItem(COLORREF color);
- int AddString( LPCTSTR lpszItem);
- int AddString( LPCTSTR lpszItem, COLORREF rgb);
- int InsertString( int nIndex, LPCTSTR lpszItem, COLORREF rgb);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CColorListBox)
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMIS);
- //virtual void Drawltem(LPDRAWITEMSTRUCT lpDIS);
- //virtual int Compareltem(LPCOMPAREITEMSTRUCT lpCIS);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CColorListBox();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CColorListBox)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_COLORLISTBOX_H__5529A6B1_584A_11D2_A41A_006097BD277B__INCLUDED_)