📄 staticex.h
字号:
#if !defined(AFX_STATICEX_H__B2E02721_8AE7_11D4_B458_00104B1269BD__INCLUDED_)
#define AFX_STATICEX_H__B2E02721_8AE7_11D4_B458_00104B1269BD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StaticEx.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CStaticEx window
enum FlashType {None, Text, Background };
class CStaticEx : public CStatic
{
// Construction
public:
CStaticEx();
// Attributes
public:
protected:
COLORREF m_crText;
HBRUSH m_hBrush;
HBRUSH m_hwndBrush;
LOGFONT m_lf;
CFont m_font;
CString m_strText;
BOOL m_bState;
BOOL m_bTimer;
BOOL m_bLink;
FlashType m_Type;
HCURSOR m_hCursor;
// Operations
public:
CStaticEx& SetBorder(BOOL bSet);
CStaticEx& SetSunken(BOOL bSet);
CStaticEx& SetFontSize(int nSize);
CStaticEx& SetFontItalic(BOOL bSet);
CStaticEx& SetFontUnderline(BOOL bSet);
CStaticEx& SetFontName(const CString& strFont);
CStaticEx& SetFontBold(BOOL bBold);
CStaticEx& SetText(const CString& strText);
CStaticEx& SetBkColor(COLORREF crBkgnd);
CStaticEx& SetTextColor(COLORREF crText);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStaticEx)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CStaticEx();
// Generated message map functions
protected:
void ReconstructFont();
//{{AFX_MSG(CStaticEx)
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg void OnSysColorChange();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STATICEX_H__B2E02721_8AE7_11D4_B458_00104B1269BD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -