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

📄 multiextview.cpp

📁 < MFC经典问答>>是微软类库经常遇到的问题
💻 CPP
字号:
// MultiExtView.cpp : implementation of the CMultiExtView class
//

#include "stdafx.h"
#include "MultiExt.h"

#include "MultiExtDoc.h"
#include "MultiExtView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMultiExtView

IMPLEMENT_DYNCREATE(CMultiExtView, CEditView)

BEGIN_MESSAGE_MAP(CMultiExtView, CEditView)
	//{{AFX_MSG_MAP(CMultiExtView)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CMultiExtView construction/destruction

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

}

CMultiExtView::~CMultiExtView()
{
}

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

	return bPreCreated;
}

/////////////////////////////////////////////////////////////////////////////
// CMultiExtView drawing

void CMultiExtView::OnDraw(CDC* pDC)
{
	CMultiExtDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

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

/////////////////////////////////////////////////////////////////////////////
// CMultiExtView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMultiExtView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMultiExtView message handlers

⌨️ 快捷键说明

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