📄 registdlg.cpp
字号:
// RegistDlg.cpp : implementation file
//
#include "stdafx.h"
#include "教学系统.h"
#include "RegistDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// RegistDlg dialog
RegistDlg::RegistDlg(CWnd* pParent /*=NULL*/)
: CDialog(RegistDlg::IDD, pParent)
{
srand(time(0));
//{{AFX_DATA_INIT(RegistDlg)
nam = _T("计算机");
ar2 = 0;
num = 9006100+rand()%37+1;;
re1 = 60;
re2 = 60;
cla = 0;
sub1 = 0;
sub2 = 0;
ar1 = 0;
//}}AFX_DATA_INIT
}
void RegistDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(RegistDlg)
DDX_Text(pDX, IDC_EDITname, nam);
DDX_Text(pDX, IDC_EDITaddr2, ar2);
DDX_Text(pDX, IDC_EDITnumble, num);
DDX_Text(pDX, IDC_EDITresult1, re1);
DDX_Text(pDX, IDC_EDITresult2, re2);
DDX_CBIndex(pDX, IDC_COMBOclass, cla);
DDX_CBIndex(pDX, IDC_COMBOs1, sub1);
DDX_CBIndex(pDX, IDC_COMBOs2, sub2);
DDX_Text(pDX, IDC_EDITaddr1, ar1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(RegistDlg, CDialog)
//{{AFX_MSG_MAP(RegistDlg)
// ON_BN_CLICKED(IDC_BUTTON2, Oncancel)//取消---------------------------------------------------------------------------
ON_BN_CLICKED(IDC_BUTTON1, OnOK)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// RegistDlg message handlers
void RegistDlg::OnOK()
{
CDialog::OnOK();
}
void RegistDlg::Oncancel()
{
CDialog::OnCancel();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -