www.pudn.com > 密聊源程序.rar > ColorEdit.h


#if !defined(AFX_COLOREDIT_H__C8247F72_7333_4C97_9B7A_CAE5B7D21A22__INCLUDED_) 
#define AFX_COLOREDIT_H__C8247F72_7333_4C97_9B7A_CAE5B7D21A22__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ColorEdit.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CColorEdit window 
 
class CColorEdit : public CEdit 
{ 
// Construction 
public: 
	COLORREF m_FontColor;	//字体颜色  
	COLORREF m_backgroundColor;	//背景颜色  
	CBrush m_brush;	//背景刷子对象 
	CColorEdit(); 
 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CColorEdit) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void SetBkColor(COLORREF crBkgnd); 
	void SetTextColor(COLORREF crText); 
	virtual ~CColorEdit(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CColorEdit) 
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor); 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_COLOREDIT_H__C8247F72_7333_4C97_9B7A_CAE5B7D21A22__INCLUDED_)