vcmat2view.cpp

来自「MATLAB高级编程,MATLAB工程数学,MATLAB实用教程,MATLAB图」· C++ 代码 · 共 110 行

CPP
110
字号
// VCmat2View.cpp : implementation of the CVCmat2View class
//

#include "stdafx.h"
#include "VCmat2.h"

#include "VCmat2Doc.h"
#include "VCmat2View.h"

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

/////////////////////////////////////////////////////////////////////////////
// CVCmat2View

IMPLEMENT_DYNCREATE(CVCmat2View, CEditView)

BEGIN_MESSAGE_MAP(CVCmat2View, CEditView)
	//{{AFX_MSG_MAP(CVCmat2View)
		// 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, CEditView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CEditView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CVCmat2View construction/destruction

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

}

CVCmat2View::~CVCmat2View()
{
}

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

	BOOL bPreCreated = CEditView::PreCreateWindow(cs);
	cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL);	// Enable word-wrapping

	return bPreCreated;
}

/////////////////////////////////////////////////////////////////////////////
// CVCmat2View drawing

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

/////////////////////////////////////////////////////////////////////////////
// CVCmat2View printing

BOOL CVCmat2View::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default CEditView preparation
	return CEditView::OnPreparePrinting(pInfo);
}

void CVCmat2View::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
	// Default CEditView begin printing.
	CEditView::OnBeginPrinting(pDC, pInfo);
}

void CVCmat2View::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
	// Default CEditView end printing
	CEditView::OnEndPrinting(pDC, pInfo);
}

/////////////////////////////////////////////////////////////////////////////
// CVCmat2View diagnostics

#ifdef _DEBUG
void CVCmat2View::AssertValid() const
{
	CEditView::AssertValid();
}

void CVCmat2View::Dump(CDumpContext& dc) const
{
	CEditView::Dump(dc);
}

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

/////////////////////////////////////////////////////////////////////////////
// CVCmat2View message handlers

⌨️ 快捷键说明

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