www.pudn.com > roll.rar > InputTwoString.cpp


// InputTwoString.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "roll.h" 
#include "InputTwoString.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CInputTwoString dialog 
 
 
CInputTwoString::CInputTwoString(CString& string1,CString& string2,CWnd* pParent /*=NULL*/) 
	: CDialog(CInputTwoString::IDD, pParent),strState1(string1),strState2(string2) 
{ 
	//{{AFX_DATA_INIT(CInputTwoString) 
	m_String1 = _T(""); 
	m_String2 = _T(""); 
	//}}AFX_DATA_INIT 
} 
 
 
void CInputTwoString::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CInputTwoString) 
	DDX_Text(pDX, IDC_EDIT1, m_String1); 
	DDX_Text(pDX, IDC_EDIT2, m_String2); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CInputTwoString, CDialog) 
	//{{AFX_MSG_MAP(CInputTwoString) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CInputTwoString message handlers 
 
BOOL CInputTwoString::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	CStatic* Static=(CStatic*)GetDlgItem(IDC_STATE1); 
	Static->SetWindowText(strState1); 
	Static=(CStatic*)GetDlgItem(IDC_STATE2); 
	Static->SetWindowText(strState2); 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}