www.pudn.com > evc_Chuankou.rar > Baue.cpp, change:2005-10-27,size:1200b


// Baue.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Chuankou.h" 
#include "Baue.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CBaue dialog 
 
 
CBaue::CBaue(CWnd* pParent /*=NULL*/) 
	: CDialog(CBaue::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CBaue) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CBaue::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CBaue) 
		// NOTE: the ClassWizard will add DDX and DDV calls here 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CBaue, CDialog) 
	//{{AFX_MSG_MAP(CBaue) 
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CBaue message handlers 
 
void CBaue::OnButton1()  
{ 
	CComboBox *pCmbBaud = NULL; 
	pCmbBaud = (CComboBox*)GetDlgItem(IDC_CMBBAUD); 
	ASSERT(pCmbBaud != NULL); 
	//µÃµ½²¨ÌØÂÊ 
	CString tmpBaud; 
	pCmbBaud->GetWindowText(tmpBaud); 
	m_baud = _wtoi(tmpBaud); 
	CDialog::OnOK(); 
}