📄 postaggerview.cpp
字号:
// POSTaggerView.cpp : implementation of the CPOSTaggerView class
//
#include "stdafx.h"
#include "POSTagger.h"
#include "POSTaggerDoc.h"
#include "POSTaggerView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPOSTaggerView
IMPLEMENT_DYNCREATE(CPOSTaggerView, CEditView)
BEGIN_MESSAGE_MAP(CPOSTaggerView, CEditView)
//{{AFX_MSG_MAP(CPOSTaggerView)
// 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, CEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPOSTaggerView construction/destruction
CPOSTaggerView::CPOSTaggerView()
{
// TODO: add construction code here
}
CPOSTaggerView::~CPOSTaggerView()
{
}
BOOL CPOSTaggerView::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;
}
/////////////////////////////////////////////////////////////////////////////
// CPOSTaggerView drawing
void CPOSTaggerView::OnDraw(CDC* pDC)
{
CPOSTaggerDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CPOSTaggerView printing
BOOL CPOSTaggerView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default CEditView preparation
return CEditView::OnPreparePrinting(pInfo);
}
void CPOSTaggerView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView begin printing.
CEditView::OnBeginPrinting(pDC, pInfo);
}
void CPOSTaggerView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// Default CEditView end printing
CEditView::OnEndPrinting(pDC, pInfo);
}
/////////////////////////////////////////////////////////////////////////////
// CPOSTaggerView diagnostics
#ifdef _DEBUG
void CPOSTaggerView::AssertValid() const
{
CEditView::AssertValid();
}
void CPOSTaggerView::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
CPOSTaggerDoc* CPOSTaggerView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CPOSTaggerDoc)));
return (CPOSTaggerDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CPOSTaggerView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -