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

📄 studlg.cpp

📁 本压缩软件为《Visual C++6.0基础教程》(黑魔方系列)一书的源代码
💻 CPP
字号:
// StuDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Student.h"
#include "StuDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CStuDlg dialog


CStuDlg::CStuDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CStuDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CStuDlg)
	m_StuAge = _T("");
	m_StuCode = _T("");
	m_StuName = _T("");
	m_StuSex = _T("");
	//}}AFX_DATA_INIT
}


void CStuDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CStuDlg)
	DDX_Text(pDX, IDC_STU_AGE, m_StuAge);
	DDX_Text(pDX, IDC_STU_ID, m_StuCode);
	DDX_Text(pDX, IDC_STU_NAME, m_StuName);
	DDX_Text(pDX, IDC_STU_SEX, m_StuSex);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CStuDlg message handlers

void CStuDlg::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(true);
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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