www.pudn.com > IEC104_codeamaterial.rar > Dlgbaowen.cpp, change:2009-04-02,size:1221b


// Dlgbaowen.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "gb104.h" 
#include "Dlgbaowen.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgbaowen dialog 
 
 
CDlgbaowen::CDlgbaowen(CWnd* pParent /*=NULL*/) 
	: CDialog(CDlgbaowen::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CDlgbaowen) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CDlgbaowen::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CDlgbaowen) 
	DDX_Control(pDX, IDC_RICHEDIT2, m_baowen); 
	DDX_Control(pDX, IDC_RICHEDIT1, m_framename); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CDlgbaowen, CDialog) 
	//{{AFX_MSG_MAP(CDlgbaowen) 
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgbaowen message handlers 
 
void CDlgbaowen::OnButton1()  
{ 
	// TODO: Add your control notification handler code here 
	long len=m_baowen.GetTextLength(); 
		m_baowen.SetSel(0,len); 
	m_baowen.ReplaceSel(""); 
}