📄 seldlg.cpp
字号:
// SelDlg.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "SelDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSelDlg dialog
int n=0;
CSelDlg::CSelDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSelDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSelDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CSelDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSelDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSelDlg, CDialog)
//{{AFX_MSG_MAP(CSelDlg)
ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSelDlg message handlers
void CSelDlg::OnOK()
{
// TODO: Add extra validation here
if(n==1)
{
m_selstr.m_str=L"ekok";
n=0;
CDialog::OnOK();
}
else
{
if(n==2)
{
m_selstr.m_str =L"diskok";
n=0;
CDialog::OnOK();
}
else
{
MessageBox("请选择CA方式!","提示信息",MB_OK | MB_ICONINFORMATION);
}
}
//CDialog::OnOK();
}
void CSelDlg::OnRadio1()
{
// TODO: Add your control notification handler code here
n=2;
}
void CSelDlg::OnRadio2()
{
// TODO: Add your control notification handler code here
n=1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -