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

📄 student.cpp

📁 Visual C++下利用数据库开发源程序的示例
💻 CPP
字号:
// student.cpp : implementation file
//

#include "stdafx.h"
#include "newdata.h"
#include "student.h"

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

/////////////////////////////////////////////////////////////////////////////
// student dialog


student::student(CWnd* pParent /*=NULL*/)
	: CDialog(student::IDD, pParent)
{
	//{{AFX_DATA_INIT(student)
	m_birthday = 0;
	m_name = _T("");
	m_no = _T("");
	m_stature = 0;
	//}}AFX_DATA_INIT
}


void student::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(student)
	DDX_DateTimeCtrl(pDX, IDC_DT_BIRTHDAY, m_birthday);
	DDX_Text(pDX, IDC_EDT_NAME, m_name);
	DDX_Text(pDX, IDC_EDT_NO, m_no);
	DDX_Text(pDX, IDC_EDT_STATURE, m_stature);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// student message handlers

void student::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

void student::OnCancel() 
{
	// TODO: Add extra cleanup here
	
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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