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