📄 statview2.cpp
字号:
// StatView2.cpp : implementation file
//
#include "stdafx.h"
#include "sy44.h"
#include "StatView2.h"
#include "sy44Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CStatView2
IMPLEMENT_DYNCREATE(CStatView2, CView)
CStatView2::CStatView2()
{
}
CStatView2::~CStatView2()
{
}
BEGIN_MESSAGE_MAP(CStatView2, CView)
//{{AFX_MSG_MAP(CStatView2)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CStatView2 drawing
void CStatView2::OnDraw(CDC* pDC)
{
CSy44Doc* pDoc = (CSy44Doc*)GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code here
CString x;
x.Format("%4d",pDoc->m_Value);
pDC->TextOut(10,10,x);
}
/////////////////////////////////////////////////////////////////////////////
// CStatView2 diagnostics
#ifdef _DEBUG
void CStatView2::AssertValid() const
{
CView::AssertValid();
}
void CStatView2::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CStatView2 message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -