www.pudn.com > Clean.rar > XPButton.h
//////////////////////////////////////////////////////////////////////
//类名: CXPButton //
//功能: 实现XP风格按钮 //
//作者: 祁坤钰 //
//日期: 2002.9.25 //
//Email: qikunyu@public.lz.gs.cn //
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_XPBUTTON_H__45EE9451_CF13_11D6_A95B_5254AB5527AA__INCLUDED_)
#define AFX_XPBUTTON_H__45EE9451_CF13_11D6_A95B_5254AB5527AA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// XPButton.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CXPButton window
class CXPButton : public CButton
{
// Construction
public:
CXPButton();
BOOL m_MouseFlag; //标记鼠标是否移动到按钮上
// Attributes
public:
LOGFONT * lf;
CFont *m_Font;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CXPButton)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
//}}AFX_VIRTUAL
// Implementation
public:
void ModifiColor(COLORREF color);
virtual ~CXPButton();
// Generated message map functions
protected:
//{{AFX_MSG(CXPButton)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_XPBUTTON_H__45EE9451_CF13_11D6_A95B_5254AB5527AA__INCLUDED_)