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

📄 dialog5.cpp

📁 密钥的管理中心
💻 CPP
字号:
// Dialog5.cpp : implementation file
//

#include "stdafx.h"
#include "bishe.h"
#include "Dialog5.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialog5 dialog


CDialog5::CDialog5(CWnd* pParent /*=NULL*/)
	: CDialog(CDialog5::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialog5)
	//}}AFX_DATA_INIT
}


void CDialog5::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialog5)
	DDX_Control(pDX, IDC_NVIEW_LIST1, m_nview);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialog5, CDialog)
	//{{AFX_MSG_MAP(CDialog5)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialog5 message handlers


BOOL CDialog5::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_nview.AddString("证书信息");
	
	m_nview.InsertString(1,"-------------------------------------------------------------");
	m_nview.InsertString(2,"");
	m_nview.InsertString(3,"");
	m_nview.InsertString(4,"");
    //获得用户的姓名
    char sedit[30]="颁发给:";
	strcat(sedit,g_USERNAME);

	m_nview.InsertString(5,sedit);
	m_nview.InsertString(6,"颁发者: KDC");
    m_nview.InsertString(7,"");
	m_nview.InsertString(8,"");

	m_nview.InsertString(9,"");

	m_nview.InsertString(10,"-------------------------------------------------------------");
	
	m_nview.InsertString(11,"");
	m_nview.InsertString(12,"");
	m_nview.InsertString(13,"");
	m_nview.InsertString(14,"");
    //获得证书的有效期
    m_nview.InsertString(15,"有效期:10年");
	m_nview.InsertString(16,"你有一个和该证书对应的私钥");



	



	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 + -