📄 drawstatic.h
字号:
#if !defined(AFX_DRAWSTATIC_H__937EF93F_156B_4F10_A30A_81633407528F__INCLUDED_)
#define AFX_DRAWSTATIC_H__937EF93F_156B_4F10_A30A_81633407528F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DrawStatic.h : header file
//
typedef void (*PAINTPROCSTATIC)(CDC*pDC,CString strPaintInfo);
/////////////////////////////////////////////////////////////////////////////
// CDrawStatic window
class CDrawStatic : public CStatic
{
// Construction
public:
CDrawStatic();
void SetPaintProc(PAINTPROCSTATIC paintProc);
void SetPaintInfo(CString strPaintInfo);
void Paint();
// Attributes
protected:
CString m_strPaintInfo;
PAINTPROCSTATIC m_paintProc;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDrawStatic)
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
BOOL IsReadyToPaint();
virtual ~CDrawStatic();
// Generated message map functions
protected:
//{{AFX_MSG(CDrawStatic)
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_DRAWSTATIC_H__937EF93F_156B_4F10_A30A_81633407528F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -