www.pudn.com > TempProj.rar > Input.cpp, change:2004-10-30,size:1169b


// Input.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "TempProj.h" 
#include "Input.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CInput dialog 
 
 
CInput::CInput(CWnd* pParent /*=NULL*/) 
	: CDialog(CInput::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CInput) 
	m_Name = _T(""); 
	m_Sex = _T(""); 
	m_Age = 0; 
	m_Class = _T(""); 
	m_Score = 0; 
	//}}AFX_DATA_INIT 
} 
 
 
void CInput::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CInput) 
	DDX_Text(pDX, IDC_EDIT1_NAME, m_Name); 
	DDX_Text(pDX, IDC_EDIT2_SEX, m_Sex); 
	DDX_Text(pDX, IDC_EDIT3_AGE, m_Age); 
	DDX_Text(pDX, IDC_EDIT4_CLASS, m_Class); 
	DDX_Text(pDX, IDC_EDIT5_SCORE, m_Score); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CInput, CDialog) 
	//{{AFX_MSG_MAP(CInput) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CInput message handlers 
 
void CInput::OnOK()  
{ 
	// TODO: Add extra validation here 
	 
	CDialog::OnOK(); 
}