www.pudn.com > 编译原理上机实验.rar > XEdit.cpp


// XEdit.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "PL0.h" 
#include "XEdit.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CXEdit 
 
CXEdit::CXEdit() 
{ 
} 
 
CXEdit::~CXEdit() 
{ 
} 
 
 
BEGIN_MESSAGE_MAP(CXEdit, CEdit) 
	//{{AFX_MSG_MAP(CXEdit) 
		// NOTE - the ClassWizard will add and remove mapping macros here. 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CXEdit message handlers 
 
void CXEdit::AppendText(char *pText) 
{ 
	int nLen=GetWindowTextLength(); 
	if (nLen>29000) return; 
	SetSel(nLen,nLen); 
	ReplaceSel(pText); 
}