statview2.cpp

来自「这是一个C程序,仅供大家参考,如果有什么疑问,请给我发邮件,大家一起讨论!」· C++ 代码 · 共 68 行

CPP
68
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?