exmpcomboview.cpp

来自「这个是我们学校用的VC++教案」· C++ 代码 · 共 105 行

CPP
105
字号
// ExmpComboView.cpp : implementation of the CExmpComboView class
//

#include "stdafx.h"
#include "ExmpCombo.h"

#include "ExmpComboDoc.h"
#include "ExmpComboView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CExmpComboView

IMPLEMENT_DYNCREATE(CExmpComboView, CView)

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

/////////////////////////////////////////////////////////////////////////////
// CExmpComboView construction/destruction

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

}

CExmpComboView::~CExmpComboView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CExmpComboView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CExmpComboView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CExmpComboView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CExmpComboView message handlers

⌨️ 快捷键说明

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