www.pudn.com > BKColor.rar > MyButton.h


#if !defined(AFX_MYBUTTON_H__E72138C7_9545_4C82_9189_9E407DFB3A9F__INCLUDED_) 
#define AFX_MYBUTTON_H__E72138C7_9545_4C82_9189_9E407DFB3A9F__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// MyButton.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CMyButton window 
 
class CMyButton : public CButton 
{ 
// Construction 
public: 
	CMyButton(); 
 
// Attributes 
public: 
 
private: 
//	BOOL m_IsCreated; 
	COLORREF m_clrFore;   //   ǰ¾°É« 
	COLORREF m_clrBack;   //   ±³¾°É« 
	CBrush   m_brush;   //   ±³¾°»­Ë¢ 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMyButton) 
	public: 
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	BOOL m_IsMouseOnButton; 
	virtual ~CMyButton(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CMyButton) 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnKillFocus(CWnd* pNewWnd); 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MYBUTTON_H__E72138C7_9545_4C82_9189_9E407DFB3A9F__INCLUDED_)