📄 colorbutton.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -