try_unicview.cpp

来自「专门处理UNICODE编码文件的工作区」· C++ 代码 · 共 110 行

CPP
110
字号
// try_unicView.cpp : implementation of the CTry_unicView class
//

#include "stdafx.h"
#include "try_unic.h"

#include "try_unicDoc.h"
#include "try_unicView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CTry_unicView

IMPLEMENT_DYNCREATE(CTry_unicView, CEditView)

BEGIN_MESSAGE_MAP(CTry_unicView, CEditView)
	//{{AFX_MSG_MAP(CTry_unicView)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CTry_unicView construction/destruction

CTry_unicView::CTry_unicView()
{
	// TODO: add construction code here

}

CTry_unicView::~CTry_unicView()
{
}

BOOL CTry_unicView::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;
}

/////////////////////////////////////////////////////////////////////////////
// CTry_unicView drawing

void CTry_unicView::OnDraw(CDC* pDC)
{
	CTry_unicDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CTry_unicView printing

BOOL CTry_unicView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default CEditView preparation
	return CEditView::OnPreparePrinting(pInfo);
}

void CTry_unicView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
	// Default CEditView begin printing.
	CEditView::OnBeginPrinting(pDC, pInfo);
}

void CTry_unicView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
	// Default CEditView end printing
	CEditView::OnEndPrinting(pDC, pInfo);
}

/////////////////////////////////////////////////////////////////////////////
// CTry_unicView diagnostics

#ifdef _DEBUG
void CTry_unicView::AssertValid() const
{
	CEditView::AssertValid();
}

void CTry_unicView::Dump(CDumpContext& dc) const
{
	CEditView::Dump(dc);
}

CTry_unicDoc* CTry_unicView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTry_unicDoc)));
	return (CTry_unicDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CTry_unicView message handlers

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?