📄 testcorpusview.cpp
字号:
// TestCorpusView.cpp : implementation of the CTestCorpusView class
//
#include "stdafx.h"
#include "TestCorpus.h"
#include "GetDataDlg.h"
#include "TestCorpusDoc.h"
#include "TestCorpusView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTestCorpusView
IMPLEMENT_DYNCREATE(CTestCorpusView, CEditView)
BEGIN_MESSAGE_MAP(CTestCorpusView, CEditView)
//{{AFX_MSG_MAP(CTestCorpusView)
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTestCorpusView construction/destruction
CTestCorpusView::CTestCorpusView()
{
// TODO: add construction code here
}
CTestCorpusView::~CTestCorpusView()
{
}
BOOL CTestCorpusView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
BOOL bPreCreated = CEditView::PreCreateWindow(cs);
cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL); // Enable word-wrapping
return bPreCreated;
}
/////////////////////////////////////////////////////////////////////////////
// CTestCorpusView drawing
void CTestCorpusView::OnDraw(CDC* pDC)
{
CTestCorpusDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CTestCorpusView printing
BOOL CTestCorpusView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default CEditView preparation
return CEditView::OnPreparePrinting(pInfo);
}
void CTestCorpusView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView begin printing.
CEditView::OnBeginPrinting(pDC, pInfo);
}
void CTestCorpusView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView end printing
CEditView::OnEndPrinting(pDC, pInfo);
}
/////////////////////////////////////////////////////////////////////////////
// CTestCorpusView diagnostics
#ifdef _DEBUG
void CTestCorpusView::AssertValid() const
{
CEditView::AssertValid();
}
void CTestCorpusView::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
CTestCorpusDoc* CTestCorpusView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTestCorpusDoc)));
return (CTestCorpusDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CTestCorpusView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -