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

📄 vcmat2view.cpp

📁 MATLAB高级编程,MATLAB工程数学,MATLAB实用教程,MATLAB图形图像等源码集锦
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -