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

📄 lcd256view.cpp

📁 从真彩到s3c44b0256 LCD取模源代码,用来做嵌入式系统中lcd的汉字显示
💻 CPP
字号:
// LCD256View.cpp : implementation of the CLCD256View class
//

#include "stdafx.h"
#include "LCD256.h"

#include "LCD256Doc.h"
#include "LCD256View.h"

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

/////////////////////////////////////////////////////////////////////////////
// CLCD256View

IMPLEMENT_DYNCREATE(CLCD256View, CView)

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

/////////////////////////////////////////////////////////////////////////////
// CLCD256View construction/destruction

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

}

CLCD256View::~CLCD256View()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CLCD256View drawing

void CLCD256View::OnDraw(CDC* pDC)
{
	CLCD256Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
	pDoc->DrawSource(pDC);
}

/////////////////////////////////////////////////////////////////////////////
// CLCD256View printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CLCD256View diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CLCD256View message handlers

⌨️ 快捷键说明

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