📄 ch17_1view.cpp
字号:
// CH17_1View.cpp : implementation of the CCH17_1View class
//
#include "stdafx.h"
#include "CH17_1.h"
#include "CH17_1Doc.h"
#include "CH17_1View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCH17_1View
IMPLEMENT_DYNCREATE(CCH17_1View, CView)
BEGIN_MESSAGE_MAP(CCH17_1View, CView)
//{{AFX_MSG_MAP(CCH17_1View)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCH17_1View construction/destruction
CCH17_1View::CCH17_1View()
{
// TODO: add construction code here
}
CCH17_1View::~CCH17_1View()
{
}
BOOL CCH17_1View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCH17_1View drawing
void CCH17_1View::OnDraw(CDC* pDC)
{
CCH17_1Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCH17_1View printing
BOOL CCH17_1View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCH17_1View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCH17_1View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCH17_1View diagnostics
#ifdef _DEBUG
void CCH17_1View::AssertValid() const
{
CView::AssertValid();
}
void CCH17_1View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCH17_1Doc* CCH17_1View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCH17_1Doc)));
return (CCH17_1Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCH17_1View message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -