www.pudn.com > VC生成漂亮界面.zip > StyleButton.h


#if !defined(AFX_STYLEBUTTON_H__F408A871_42AE_48B0_9A39_2F69A20A8AF9__INCLUDED_) 
#define AFX_STYLEBUTTON_H__F408A871_42AE_48B0_9A39_2F69A20A8AF9__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// StyleButton.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CStyleButton window 
 
class CStyleButton : public CButton 
{ 
// Construction 
public: 
	CStyleButton(); 
 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CStyleButton) 
	public: 
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	HCURSOR m_hCursor; 
	CSize	m_IconSize; 
	HICON	m_hIcon_Enable; 
	HICON	m_hIcon_Active; 
	int		m_nTColor_Enable; 
	int		m_nTColor_Active; 
	int		m_nBColor_Enable; 
	int		m_nBColor_Active; 
 
	virtual ~CStyleButton(); 
 
	// Generated message map functions 
protected: 
	bool m_bCursorOn; 
	//{{AFX_MSG(CStyleButton) 
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnCaptureChanged(CWnd *pWnd); 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_STYLEBUTTON_H__F408A871_42AE_48B0_9A39_2F69A20A8AF9__INCLUDED_)