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

📄 inputinfo.cpp

📁 个VC++多文档应用程序源码
💻 CPP
字号:
// InputInfo.cpp : implementation file
//

#include "stdafx.h"
#include "Raclient.h"
#include "InputInfo.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CInputInfoDlg dialog


CInputInfoDlg::CInputInfoDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CInputInfoDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CInputInfoDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	m_bitOK.LoadBitmap(IDB_BITMAPOK);
	m_bitCancle.LoadBitmap(IDB_BITMAPCANCLE);

}


void CInputInfoDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CInputInfoDlg)
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CInputInfoDlg, CDialog)
	//{{AFX_MSG_MAP(CInputInfoDlg)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
	ON_BN_CLICKED(IDC_RADIO4, OnRadio4)
	ON_BN_CLICKED(IDC_RADIO5, OnRadio5)
	ON_BN_CLICKED(IDC_RADIO6, OnRadio6)
	ON_BN_CLICKED(IDC_RADIO7, OnRadio7)
	ON_BN_CLICKED(IDC_RADIO8, OnRadio8)
	ON_BN_CLICKED(IDC_RADIO9, OnRadio9)
	ON_BN_CLICKED(IDC_RADIO10, OnRadio10)
	ON_BN_CLICKED(IDC_RADIO11, OnRadio11)
	ON_BN_CLICKED(IDC_RADIO12, OnRadio12)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CInputInfoDlg message handlers

BOOL CInputInfoDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	((CButton*)GetDlgItem(IDOK))->SetBitmap(m_bitOK);
	((CButton*)GetDlgItem(IDCANCEL))->SetBitmap(m_bitCancle);
	// TODO: Add extra initialization here
	GetDlgItem(IDC_EDIT1)->SetWindowText("12");
	((CButton*)GetDlgItem(IDC_RADIO1))->SetCheck(1);
	((CButton*)GetDlgItem(IDC_RADIO4))->SetCheck(1);
	((CButton*)GetDlgItem(IDC_RADIO6))->SetCheck(1);
	((CButton*)GetDlgItem(IDC_RADIO10))->SetCheck(1);
	m_strinfo[1]="一级证书";
	m_strinfo[2]="RA服务器产生";
	m_strinfo[3]="通用证书";
	m_strinfo[4]="磁盘";



	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CInputInfoDlg::OnOK() 
{
	// TODO: Add extra validation here
	GetDlgItem(IDC_EDIT1)->GetWindowText(m_strinfo[0]);
	m_strinfo[0]+="月";
	CDialog::OnOK();
}

void CInputInfoDlg::OnRadio1() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[1]="一级证书";
}

void CInputInfoDlg::OnRadio2() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[1]="二级证书";

}

void CInputInfoDlg::OnRadio3() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[2]="客户端产生";

}

void CInputInfoDlg::OnRadio4() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[2]="RA服务器产生";

}

void CInputInfoDlg::OnRadio5() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[2]="CA处/上级RA产生";
}

void CInputInfoDlg::OnRadio6() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[3]="通用证书";
}

void CInputInfoDlg::OnRadio7() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[3]="签名证书";
}

void CInputInfoDlg::OnRadio8() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[3]="加密证书";

}

void CInputInfoDlg::OnRadio9() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[4]="存储卡";
	
}

void CInputInfoDlg::OnRadio10() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[4]="磁盘";
	
}

void CInputInfoDlg::OnRadio11() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[4]="CPU卡";
	
}

void CInputInfoDlg::OnRadio12() 
{
	// TODO: Add your control notification handler code here
	m_strinfo[4]="USB钥匙";
}

⌨️ 快捷键说明

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