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

📄 dataview.cpp

📁 VC编译环境下实现编译器。 实现词法和语法分析。
💻 CPP
字号:
// DataView.cpp : implementation file
//

#include "stdafx.h"
#include "BY2.h"
#include "DataView.h"
#include "BY2Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDataView

IMPLEMENT_DYNCREATE(CDataView, CEditView)

CDataView::CDataView()
{
}

CDataView::~CDataView()
{
}


BEGIN_MESSAGE_MAP(CDataView, CEditView)
	//{{AFX_MSG_MAP(CDataView)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDataView drawing

void CDataView::OnDraw(CDC* pDC)
{	
	CBY2Doc* pDoc =(CBY2Doc*) GetDocument();	
	// TODO: add draw code here
	pDC->TextOut(0,0,pDoc->result);
	  
    GetEditCtrl().SetWindowText(pDoc->result);
}

/////////////////////////////////////////////////////////////////////////////
// CDataView diagnostics

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

void CDataView::Dump(CDumpContext& dc) const
{
	CEditView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CDataView message handlers

//DEL void CDataView::OnPaint() 
//DEL {
//DEL 	CPaintDC dc(this); // device context for painting
//DEL 	//CBY2Doc* pDoc =(CBY2Doc*) GetDocument();
//DEL 	// TODO: Add your message handler code here
//DEL 	//GetEditCtrl().SetWindowText(pDoc->result);
//DEL 	// Do not call CEditView::OnPaint() for painting messages
//DEL }

⌨️ 快捷键说明

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