?? 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 + -