📄 mystatictext.h
字号:
#if !defined(AFX_MYSTATICTEXT_H__592EC511_3B0D_41EC_8B38_D0869A194434__INCLUDED_)
#define AFX_MYSTATICTEXT_H__592EC511_3B0D_41EC_8B38_D0869A194434__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyStaticText.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMyStaticText window
class CMyStaticText : public CStatic
{
// Construction
public:
CMyStaticText();
// Attributes
public:
// Operations
public:
void SetForeColor(COLORREF color);// 设置文本颜色
void SetBkColor(COLORREF color); // 设置背景颜色
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyStaticText)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMyStaticText();
// Generated message map functions
protected:
//{{AFX_MSG(CMyStaticText)
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
COLORREF m_ForeColor; // 文本颜色
COLORREF m_BackColor;// 背景色
CBrush m_BkBrush; // 背景刷
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYSTATICTEXT_H__592EC511_3B0D_41EC_8B38_D0869A194434__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -