colorbutton.h

来自「串口通信程序,适用于手机的软件更新」· C头文件 代码 · 共 62 行

H
62
字号
#if !defined(AFX_COLORBUTTON_H__C679306F_8B42_46F3_9827_9A5941D959EA__INCLUDED_)
#define AFX_COLORBUTTON_H__C679306F_8B42_46F3_9827_9A5941D959EA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ColorButton.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CColorButton window
//
//Author: Xujl
//
/////////////////////////////////////////////////////////////////////////////

class CColorButton : public CButton
{
private:
	CString		m_szCaption;
	COLORREF	m_clrBkColor;
	COLORREF	m_clrTextColor;
// Construction
public:
	CColorButton();

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	void SetBtnTextColor(COLORREF clrColor);
	void SetBtnBkColor(COLORREF clrColor);
	virtual ~CColorButton();

	// Generated message map functions
protected:
	//{{AFX_MSG(CColorButton)
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_COLORBUTTON_H__C679306F_8B42_46F3_9827_9A5941D959EA__INCLUDED_)

⌨️ 快捷键说明

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