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