www.pudn.com > kcbusyprogress_demo.rar > ButtonCol.h


/**************************************************************************** 
 *	class		:	CButtonCol 
 *	author		:	Peter Mares / kinkycode.com (gui@ch.co.za) 
 *	base class	:	CButton (MFC) 
 *	notes		:	This is a quick hack and not for public consumption 
 * 
 *	Disclaimer	:	Its free, it feels good and its from South Africa :) 
 ****************************************************************************/ 
#if !defined(AFX_BUTTONCOL_H__1F7EDD7E_E5CE_43E0_8213_FA224D0B9C4B__INCLUDED_) 
#define AFX_BUTTONCOL_H__1F7EDD7E_E5CE_43E0_8213_FA224D0B9C4B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ButtonCol.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CButtonCol window 
 
class CButtonCol : public CButton 
{ 
// Construction 
public: 
	CButtonCol(); 
	virtual ~CButtonCol(); 
 
	// 
	// Methods 
	void					SetColBkg(COLORREF col)					{ m_colBkg = col; } 
	COLORREF				GetColBkg()								{ return m_colBkg; } 
	void					SetColText(COLORREF col)				{ m_colText = col; } 
	COLORREF				GetColText()							{ return m_colText; } 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CButtonCol) 
	public: 
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDIS); 
	protected: 
	virtual void PreSubclassWindow(); 
	//}}AFX_VIRTUAL 
 
 
protected: 
 
	// 
	// Attributes 
	COLORREF				m_colBkg; 
	COLORREF				m_colText; 
 
	// Generated message map functions 
	//{{AFX_MSG(CButtonCol) 
		// NOTE - the ClassWizard will add and remove member functions here. 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_BUTTONCOL_H__1F7EDD7E_E5CE_43E0_8213_FA224D0B9C4B__INCLUDED_)