📄 xxview.cpp
字号:
// XxView.cpp : CXxView class类的实现
//
#include "stdafx.h"
#include "Xx.h"
#include "XxDoc.h"
#include "XxView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// CXxView
IMPLEMENT_DYNCREATE(CXxView, CView)
BEGIN_MESSAGE_MAP(CXxView, CView)
//{{AFX_MSG_MAP(CXxView)
ON_WM_TIMER()
//}}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()
// CViewScrollView 构造/销毁
CXxView::CXxView()
{
// TODO: 在此处添加构造代码
}
CXxView::~CXxView()
{
}
BOOL CXxView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或
// 样式
return CView::PreCreateWindow(cs);
}
// CViewScrollView 绘制
void CXxView::OnDraw(CDC* pDC)
{
CXxDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: 在此处为本机数据添加绘制代码
}
// CViewScrollView 打印
BOOL CXxView::OnPreparePrinting(CPrintInfo* pInfo)
{
// 默认准备
return DoPreparePrinting(pInfo);
}
void CXxView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: 打印前添加额外的初始化
}
void CXxView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: 打印后添加清除过程
}
// CViewScrollView 诊断
#ifdef _DEBUG
void CXxView::AssertValid() const
{
CView::AssertValid();
}
void CXxView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CXxDoc* CXxView::GetDocument() // 非调试版本是内联的
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CXxDoc)));
return (CXxDoc*)m_pDocument;
}
#endif //_DEBUG
// CViewScrollView 消息处理程序
void CXxView::OnTimer(UINT nIDEvent)
{
CView::OnTimer(nIDEvent);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -