📄 insdlg.cpp
字号:
// InsDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Team2.h"
#include "Team2Dlg.h"
#include "InsDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInsDlg dialog
CInsDlg::CInsDlg(CWnd* pParent /*=NULL*/)
: CDialog(CInsDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CInsDlg)
m_subteam = _T("");
m_courseid = 0;
m_stuid = _T("");
m_name = _T("");
m_score = 0;
//}}AFX_DATA_INIT
}
void CInsDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInsDlg)
DDX_Text(pDX, IDC_EDIT2, m_subteam);
DDX_Text(pDX, IDC_EDIT1, m_courseid);
DDV_MinMaxLong(pDX, m_courseid, 0, 1000);
DDX_Text(pDX, IDC_EDIT3, m_stuid);
DDX_Text(pDX, IDC_EDIT4, m_name);
DDX_Text(pDX, IDC_EDIT5, m_score);
DDV_MinMaxInt(pDX, m_score, 0, 100);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInsDlg, CDialog)
//{{AFX_MSG_MAP(CInsDlg)
ON_BN_CLICKED(IDC_BUTTON1, OnBtnView)
ON_BN_CLICKED(IDC_BUTTON3, OnBtnEnter)
ON_BN_CLICKED(IDCANCLE, OnCancle)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInsDlg message handlers
void CInsDlg::OnBtnView()
{
// TODO: Add your control notification handler code here
}
void CInsDlg::OnBtnEnter()
{
// TODO: Add your control notification handler code here
}
void CInsDlg::OnCancle()
{
// TODO: Add your control notification handler code here
CDialog::OnCancel();
// CTeam2Dlg m_team2;
// m_team2.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -