📄 colorstatic.h
字号:
/**
***************************************************************
* 文件名: ColorStatic
* 版 权: Copyright (c) 2006-2020 中兴软件技术(南昌)有限公司
* 创建人: 袁军
* 日 期: 2007/12/13
* 版 本: V1.0
* 描 述: 美化CStatic控件的.H文件
* 修改记录:
* 修改人 修改日期 修改描述
*
***************************************************************
*/
#if !defined(AFX_COLORSTATIC_H__614C19E7_EA25_42DF_928A_51AC901B813D__INCLUDED_)
#define AFX_COLORSTATIC_H__614C19E7_EA25_42DF_928A_51AC901B813D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ColorStatic.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CColorStatic window
class CColorStatic : public CStatic
{
// Construction
public:
//设置字体色
void SetTextColor(COLORREF crColor); // This Function is to set the Color for the Text.
//设置背景色
void SetBkColor(COLORREF crColor); // This Function is to set the BackGround Color for the Text.
CColorStatic();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CColorStatic)
//}}AFX_VIRTUAL
virtual ~CColorStatic();
// Generated message map functions
protected:
//{{AFX_MSG(CColorStatic)
//背景刷
CBrush m_brBkgnd; // Holds Brush Color for the Static Text
//背景色
COLORREF m_crBkColor; // Holds the Background Color for the Text
//字体色
COLORREF m_crTextColor; // Holds the Color for the Text
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COLORSTATIC_H__614C19E7_EA25_42DF_928A_51AC901B813D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -