⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zdfsjview.cpp

📁 这是一个很好的游戏啊
💻 CPP
字号:
// ZdfsjView.cpp : implementation of the CZdfsjView class
//

#include "stdafx.h"
#include "Zdfsj.h"

#include "ZdfsjDoc.h"
#include "ZdfsjView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CZdfsjView

IMPLEMENT_DYNCREATE(CZdfsjView, CView)

BEGIN_MESSAGE_MAP(CZdfsjView, CView)
	//{{AFX_MSG_MAP(CZdfsjView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CZdfsjView construction/destruction

CZdfsjView::CZdfsjView()
{
	// TODO: add construction code here

}

CZdfsjView::~CZdfsjView()
{
}

BOOL CZdfsjView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CZdfsjView drawing

void CZdfsjView::OnDraw(CDC* pDC)
{
	CZdfsjDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);	
	DrawWord1.ZdfDrawWord(pDC,pDoc->m_ni,pDoc->m_pointX,pDoc->m_pointY);

   
     CString strDisplay;
   strDisplay.Format("击中个数:%d",pDoc->m_nCount);
   pDC->TextOut(10,10,strDisplay);

	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CZdfsjView printing

BOOL CZdfsjView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CZdfsjView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CZdfsjView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CZdfsjView diagnostics

#ifdef _DEBUG
void CZdfsjView::AssertValid() const
{
	CView::AssertValid();
}

void CZdfsjView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CZdfsjDoc* CZdfsjView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CZdfsjDoc)));
	return (CZdfsjDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CZdfsjView message handlers

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -