statview1.cpp
来自「这是一个C程序,仅供大家参考,如果有什么疑问,请给我发邮件,大家一起讨论!」· C++ 代码 · 共 66 行
CPP
66 行
// StatView1.cpp : implementation file
//
#include "stdafx.h"
#include "sy44.h"
#include "StatView1.h"
#include "sy44Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CStatView1
IMPLEMENT_DYNCREATE(CStatView1, CView)
CStatView1::CStatView1()
{
}
CStatView1::~CStatView1()
{
}
BEGIN_MESSAGE_MAP(CStatView1, CView)
//{{AFX_MSG_MAP(CStatView1)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CStatView1 drawing
void CStatView1::OnDraw(CDC* pDC)
{
CSy44Doc* pDoc =(CSy44Doc*)GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code here
pDC->TextOut(10,10,pDoc->m_String);
}
/////////////////////////////////////////////////////////////////////////////
// CStatView1 diagnostics
#ifdef _DEBUG
void CStatView1::AssertValid() const
{
CView::AssertValid();
}
void CStatView1::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CStatView1 message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?