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

📄 mldtestview.cpp

📁 《VC++ 编程技巧与示例 .rar》各个示例代码绝对可用
💻 CPP
字号:
// MLDTestView.cpp : implementation of the CMLDTestView class
//

#include "stdafx.h"
#include "MLDTest.h"

#include "MLDTestDoc.h"
#include "MLDTestView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMLDTestView

IMPLEMENT_DYNCREATE(CMLDTestView, CView)

BEGIN_MESSAGE_MAP(CMLDTestView, CView)
	//{{AFX_MSG_MAP(CMLDTestView)
	ON_COMMAND(ID_TEST_MLD, OnTestMld)
	//}}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()

/////////////////////////////////////////////////////////////////////////////
// CMLDTestView construction/destruction

CMLDTestView::CMLDTestView()
{
	// TODO: add construction code here
}

CMLDTestView::~CMLDTestView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMLDTestView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CMLDTestView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMLDTestView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CMLDTestView message handlers

void CMLDTestView::OnTestMld() 
{
	// TODO: Add your command handler code here
	m_Dlg=new CModelessDlg();
	m_Dlg->Create();
}

⌨️ 快捷键说明

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