⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dictionaryview.cpp

📁 这是我的中文信息处理的小作业
💻 CPP
字号:
// DICTIONARYView.cpp : implementation of the CDICTIONARYView class
//

#include "stdafx.h"
#include "DICTIONARY.h"

#include "DICTIONARYDoc.h"
#include "DICTIONARYView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYView

IMPLEMENT_DYNCREATE(CDICTIONARYView, CView)

BEGIN_MESSAGE_MAP(CDICTIONARYView, CView)
	//{{AFX_MSG_MAP(CDICTIONARYView)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYView construction/destruction

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

}

CDICTIONARYView::~CDICTIONARYView()
{
}

BOOL CDICTIONARYView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYView drawing

void CDICTIONARYView::OnDraw(CDC* pDC)
{
	CDICTIONARYDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
	//pDC->TextOut(5,5,pDoc->str1);
    //pDC->TextOut(5,30,pDoc->str2);
    //pDC->TextOut(5,55,pDoc->str3);
	pDC->TextOut(5,80,pDoc->str4);
	pDC->TextOut(5,105,pDoc->str5);
	pDC->TextOut(5,130,pDoc->str6);
	pDC->TextOut(5,155,pDoc->str7);
	pDC->TextOut(280,180,pDoc->str8);
	pDC->TextOut(292,205,pDoc->str9);
	pDC->TextOut(304,230,pDoc->str10);

}

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYView printing

BOOL CDICTIONARYView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CDICTIONARYView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CDICTIONARYView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYView diagnostics

#ifdef _DEBUG
void CDICTIONARYView::AssertValid() const
{
	CView::AssertValid();
}

void CDICTIONARYView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

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

/////////////////////////////////////////////////////////////////////////////
// CDICTIONARYView message handlers

⌨️ 快捷键说明

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