numbertext.h
来自「电子相册程序,实现图片的浏览,放大缩小等动能!evc4.0下编译通过!」· C头文件 代码 · 共 60 行
H
60 行
#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 + =
减小字号Ctrl + -
显示快捷键?