⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewinfodlg.cpp

📁 个VC++多文档应用程序源码
💻 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
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -