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

📄 sy44view.cpp

📁 这是一个C程序,仅供大家参考,如果有什么疑问,请给我发邮件,大家一起讨论!
💻 CPP
字号:
// sy44View.cpp : implementation of the CSy44View class
//

#include "stdafx.h"
#include "sy44.h"

#include "sy44Doc.h"
#include "sy44View.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSy44View

IMPLEMENT_DYNCREATE(CSy44View, CView)

BEGIN_MESSAGE_MAP(CSy44View, CView)
	//{{AFX_MSG_MAP(CSy44View)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CSy44View construction/destruction

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

}

CSy44View::~CSy44View()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CSy44View drawing

void CSy44View::OnDraw(CDC* pDC)
{
	CSy44Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CSy44View printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CSy44View diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CSy44View message handlers

⌨️ 快捷键说明

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