📄 numbertext.h
字号:
#if !defined(AFX_NUMBERTEXT_H__BB4B08F3_3CD2_483B_93D5_2093EF069340__INCLUDED_)
#define AFX_NUMBERTEXT_H__BB4B08F3_3CD2_483B_93D5_2093EF069340__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// NumberText.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CNumberText window
class CNumberText : public CStatic
{
CRect m_Rect;
COLORREF m_bkColor;
COLORREF m_textColor;
CDC m_bkDC;
CDC m_compDC;
CBitmap m_bkBitmap;
CBitmap m_compBitmap;
CString m_strText;
// Construction
public:
CNumberText();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNumberText)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CNumberText();
BOOL Create(DWORD style, const RECT& rect, CWnd* pParentWnd, UINT ID);
void DrawBK();
void DrawNumText();
void UpdateText(int num, int maxNum);
// Generated message map functions
protected:
//{{AFX_MSG(CNumberText)
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NUMBERTEXT_H__BB4B08F3_3CD2_483B_93D5_2093EF069340__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -