⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 advbutton.h

📁 一个用VC写的计算器
💻 H
字号:
#if !defined(AFX_ADVBUTTON_H__B5DE80FE_E040_4595_8072_A189D6F29BBB__INCLUDED_)
#define AFX_ADVBUTTON_H__B5DE80FE_E040_4595_8072_A189D6F29BBB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#define DesiableColor RGB(192,192,192)
#define FocusColor    RGB(0,80,255)
#define SelectColor   RGB(0,255,0)
#define DefaultColor  RGB(0,0,50)
#define TextColor     RGB(128,128,128)
#endif // _MSC_VER > 1000
// AdvButton.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CAdvButton window

class CAdvButton : public CButton
{
// Construction
public:
	CAdvButton();

  
// Attributes
public:
	CRect m_ClientRect;
	CRgn m_ClientRgn;
	BOOL m_IsTimerOn;
	UINT m_State;
	CPoint m_Point;
// Operations
public:
    

    
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAdvButton)
	public:
    virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CAdvButton();
	BOOL Create(LPCTSTR lpszCaption,DWORD dwStyle,const RECT &rect,CWnd*pParentWnd,UINT nID);
	// Generated message map functions
protected:
	//{{AFX_MSG(CAdvButton)
	afx_msg void OnLButtonDown(UINT nFlags,CPoint point);//
	afx_msg void OnLButtonUp(UINT nFlags,CPoint point);//
    afx_msg void OnMouseMove(UINT nFlags,CPoint point);//
	afx_msg void OnTimer(UINT nIDEvent);//处理ON_WM_TIMER消息
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ADVBUTTON_H__B5DE80FE_E040_4595_8072_A189D6F29BBB__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -