mydialogview.cpp

来自「是一个对话诓额应用程序,可以实现对话诓的」· C++ 代码 · 共 105 行

CPP
105
字号
// mydialogView.cpp : implementation of the CMydialogView class
//

#include "stdafx.h"
#include "mydialog.h"

#include "mydialogDoc.h"
#include "mydialogView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMydialogView

IMPLEMENT_DYNCREATE(CMydialogView, CView)

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

/////////////////////////////////////////////////////////////////////////////
// CMydialogView construction/destruction

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

}

CMydialogView::~CMydialogView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMydialogView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CMydialogView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMydialogView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMydialogView message handlers

⌨️ 快捷键说明

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