📄 ygpcview.cpp
字号:
// YgpcView.cpp : implementation of the CYgpcView class
//
#include "stdafx.h"
#include "Ygpc.h"
#include "YgpcDoc.h"
#include "YgpcView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CYgpcView
IMPLEMENT_DYNCREATE(CYgpcView, CView)
BEGIN_MESSAGE_MAP(CYgpcView, CView)
//{{AFX_MSG_MAP(CYgpcView)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CYgpcView construction/destruction
CYgpcView::CYgpcView()
{
// TODO: add construction code here
}
CYgpcView::~CYgpcView()
{
}
BOOL CYgpcView::PreCreateWindow(CREATESTRUCfx.h"
#include "Ygpc.h"
#include "YgpcDoc.h"
#include "YgpcView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CYgpcView
IMPLEMENT_DYNCREATE(CYgpcView, CView)
BEGIN_MESSAGE_MAP(CYgpcView, CView)
//{{AFX_MSG_MAP(CYgpcView)
// NOTE - the ClassWizard will add and remove mapping/////////////////////////////////
// CYgpcView printing
BOOL CYgpcView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CYgpcView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CYgpcView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CYgpcView diagnostics
#ifdef _DEBUG
void CYgpcView::AssertValid() const
{
CView::AssertValid();
}
void CYgpcView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CYgpcDoc* CYgpcView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CYgpcDoc)));
return (CYgpcDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CYgpcView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -