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

📄 controlsdemoview.cpp

📁 Visual_C++[1].NET_Bible1 Visual_C++宝典书中的全部源码
💻 CPP
字号:
// ControlsDemoView.cpp : implementation of the CControlsDemoView class
//

#include "stdafx.h"
#include "ControlsDemo.h"

#include "ControlsDemoDoc.h"
#include "ControlsDemoView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CControlsDemoView

IMPLEMENT_DYNCREATE(CControlsDemoView, CView)

BEGIN_MESSAGE_MAP(CControlsDemoView, CView)
	// 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()

// CControlsDemoView construction/destruction

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

}

CControlsDemoView::~CControlsDemoView()
{
}

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

	return CView::PreCreateWindow(cs);
}

// CControlsDemoView drawing

void CControlsDemoView::OnDraw(CDC* /*pDC*/)
{
	CControlsDemoDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

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


// CControlsDemoView printing

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

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

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


// CControlsDemoView diagnostics

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

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

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

⌨️ 快捷键说明

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