www.pudn.com > fractal.rar > ColorButton.h


//贵州省安顺市第二高级中学 高二一班 蒋伟	 
//2002.7.1 
//请勿修改版权信息 谢谢 
//Neil 
// 
#if !defined(AFX_ColorButton_H__F34AF1A2_4E3E_4242_91EC_C6DE62F313C6__INCLUDED_) 
#define AFX_ColorButton_H__F34AF1A2_4E3E_4242_91EC_C6DE62F313C6__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ColorButton.h : header file 
// 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CColorButton window 
 
class CColorButton : public CButton 
{ 
// Construction 
public: 
	CColorButton(); 
 
// Attributes 
public: 
	 
	// Fuctions  
	 
private: 
	BOOL	m_MouseOnButton; 
	BOOL	m_bButtonPress; 
	BOOL	m_bArrowPress; 
	BOOL	m_bTrackSelection; 
 
	CRect	m_rectButton; 
	CRect	m_rectArrow; 
	 
	COLORREF m_clrCurrent; 
 
// Operations 
public: 
	COLORREF GetColor(); 
	void	 SetColor(COLORREF clrColor); 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CColorButton) 
	public: 
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CColorButton(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CColorButton) 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	//}}AFX_MSG 
	afx_msg LONG OnSelEndOK(UINT lParam, LONG wParam); 
    afx_msg LONG OnSelEndCancel(UINT lParam, LONG wParam); 
    afx_msg LONG OnSelChange(UINT lParam, LONG wParam); 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ColorButton_H__F34AF1A2_4E3E_4242_91EC_C6DE62F313C6__INCLUDED_)