www.pudn.com > 多文档Raclient.zip > ViewInfoDlg.cpp


// ViewInfoDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Raclient.h" 
#include "ViewInfoDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CViewInfoDlg dialog 
extern CString str[36]; 
extern CString strCA[36]; 
 
CViewInfoDlg::CViewInfoDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CViewInfoDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CViewInfoDlg) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
CViewInfoDlg::CViewInfoDlg(CString str,CWnd* pParent /*=NULL*/) 
	: CDialog(CViewInfoDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CViewInfoDlg) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
	m_cert=str; 
} 
 
 
void CViewInfoDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CViewInfoDlg) 
		// NOTE: the ClassWizard will add DDX and DDV calls here 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CViewInfoDlg, CDialog) 
	//{{AFX_MSG_MAP(CViewInfoDlg) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CViewInfoDlg message handlers 
 
BOOL CViewInfoDlg::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
	// TODO: Add extra initialization here 
	if(m_cert="001") 
	{ 
		for(int i=0;i<21;i++) 
		{ 
			GetDlgItem(10003+i)->SetWindowText(strCA[i]); 
		} 
	} 
	for(int i=0;i<21;i++) 
	{ 
		GetDlgItem(10003+i)->SetWindowText(str[i]); 
	} 
	GetDlgItem(IDC_EDIT23)->SetWindowText("公有制"); 
 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}