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

📄 wndstyleview.cpp

📁 Visual_C++.NET精彩案例237.rar
💻 CPP
字号:
// WndStyleView.cpp : CWndStyleView 类的实现
//

#include "stdafx.h"
#include "WndStyle.h"

#include "WndStyleDoc.h"
#include "WndStyleView.h"

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


// CWndStyleView

IMPLEMENT_DYNCREATE(CWndStyleView, CView)

BEGIN_MESSAGE_MAP(CWndStyleView, CView)
	//{{AFX_MSG_MAP(CWndStyleView)
		// 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
	// 标准打印命令
	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()
// CWndStyleView 构造/销毁

CWndStyleView::CWndStyleView()
{
	// TODO: 在此处添加构造代码

}

CWndStyleView::~CWndStyleView()
{
}

BOOL CWndStyleView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或
	// 样式

	return CView::PreCreateWindow(cs);
}

// CWndStyleView 绘制

void CWndStyleView::OnDraw(CDC* pDC)
{
	CWndStyleDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: 在此处为本机数据添加绘制代码

}

// CWndStyleView 打印

BOOL CWndStyleView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// 默认准备
	return DoPreparePrinting(pInfo);
}

void CWndStyleView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: 打印前添加额外的初始化
}

void CWndStyleView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: 打印后添加清除过程
}
// CWndStyleView 诊断

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

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

CWndStyleDoc* CWndStyleView::GetDocument() // 非调试版本是内联的
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CWndStyleDoc)));
	return (CWndStyleDoc*)m_pDocument;
}
#endif //_DEBUG

// CWndStyleView 消息处理程序

⌨️ 快捷键说明

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