資源簡介
C++圖書管理系統MFC界面窗口親測可用,十分簡潔。可用于課程設計和畢業設計,文檔PPT都有。幾百塊買的。
代碼片段和文件信息
//?ChangeStudentDataDlg.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“student.h“
#include?“ChangeStudentDataDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChangeStudentDataDlg?dialog
CChangeStudentDataDlg::CChangeStudentDataDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CChangeStudentDataDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CChangeStudentDataDlg)
m_id?=?_T(““);
m_name?=?_T(““);
m_english_score?=?_T(““);
m_chinese_score?=?_T(““);
m_math_score?=?_T(““);
//}}AFX_DATA_INIT
}
void?CChangeStudentDataDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CChangeStudentDataDlg)
DDX_Text(pDX?IDC_STATIC_ID?m_id);
DDX_Text(pDX?IDC_EDIT_NAME?m_name);
DDX_Text(pDX?IDC_EDIT_SCORE?m_english_score);
DDX_Text(pDX?IDC_EDIT_SCORE_CHINESE?m_chinese_score);
DDX_Text(pDX?IDC_EDIT_SCORE_MATH?m_math_score);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CChangeStudentDataDlg?CDialog)
//{{AFX_MSG_MAP(CChangeStudentDataDlg)
ON_WM_PAINT()
ON_BN_CLICKED(IDC_STATIC_ID?OnStaticId)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChangeStudentDataDlg?message?handlers
void?CChangeStudentDataDlg::OnPaint()?
{
CPaintDC?dc(this);?//?device?context?for?painting
????????m_id?=?“此學生學號:“+the_StrID;
m_math_score?=?the_StrScore_Math;
????????m_english_score?=?the_StrScore_English;
m_chinese_score?=?the_StrScore_Chinese;
m_name?=?the_StrName;
UpdateData(FALSE);
}
void?CChangeStudentDataDlg::OnCancel()?
{
//?TODO:?Add?extra?cleanup?here
CDialog::OnCancel();
}
void?CChangeStudentDataDlg::OnOK()?
{
????UpdateData(TRUE);
the_StrName?=?m_name;
????the_StrScore_English?=?m_english_score;
????the_StrScore_Math?=?m_math_score;
????the_StrScore_Chinese?=?m_chinese_score;
CDialog::OnOK();
}
void?CChangeStudentDataDlg::OnStaticId()?
{
//?TODO:?Add?your?control?notification?handler?code?here
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-12-10?05:08??MFC-master\
?????文件????????2077??2017-12-10?05:08??MFC-master\ChangeStudentDataDlg.cpp
?????文件????????1618??2017-12-10?05:08??MFC-master\ChangeStudentDataDlg.h
?????目錄???????????0??2017-12-10?05:08??MFC-master\Debug\
?????文件???????32330??2017-12-10?05:08??MFC-master\Debug\CL.read.1.tlog
?????文件????????1000??2017-12-10?05:08??MFC-master\Debug\CL.write.1.tlog
?????文件???????19595??2017-12-10?05:08??MFC-master\Debug\ChangeStudentDataDlg.obj
?????文件??????105619??2017-12-10?05:08??MFC-master\Debug\StdAfx.obj
?????文件???????25453??2017-12-10?05:08??MFC-master\Debug\StudentScoreGraphDialog.obj
?????文件????????2260??2017-12-10?05:08??MFC-master\Debug\cl.command.1.tlog
?????文件???????????2??2017-12-10?05:08??MFC-master\Debug\li
?????文件???????????2??2017-12-10?05:08??MFC-master\Debug\li
?????文件???????????2??2017-12-10?05:08??MFC-master\Debug\li
?????文件????????1036??2017-12-10?05:08??MFC-master\Debug\rc.command.1.tlog
?????文件????????3116??2017-12-10?05:08??MFC-master\Debug\rc.read.1.tlog
?????文件?????????430??2017-12-10?05:08??MFC-master\Debug\rc.write.1.tlog
?????文件??????168009??2017-12-10?05:08??MFC-master\Debug\student.exe
?????文件???????????2??2017-12-10?05:08??MFC-master\Debug\student.exe.em
?????文件??????????68??2017-12-10?05:08??MFC-master\Debug\student.exe.em
?????文件??????296956??2017-12-10?05:08??MFC-master\Debug\student.ilk
?????文件??????????74??2017-12-10?05:08??MFC-master\Debug\student.lastbuildstate
?????文件????????1608??2017-12-10?05:08??MFC-master\Debug\student.log
?????文件???????27185??2017-12-10?05:08??MFC-master\Debug\student.obj
?????文件?????5503452??2017-12-10?05:08??MFC-master\Debug\student.pch
?????文件??????476160??2017-12-10?05:08??MFC-master\Debug\student.pdb
?????文件????????7956??2017-12-10?05:08??MFC-master\Debug\student.res
?????文件???????????0??2017-12-10?05:08??MFC-master\Debug\student.unsuccessfulbuild
?????文件?????????713??2017-12-10?05:08??MFC-master\Debug\student.vcxprojResolveAssemblyReference.cache
?????文件???????????0??2017-12-10?05:08??MFC-master\Debug\student.write.1.tlog
?????文件??????148852??2017-12-10?05:08??MFC-master\Debug\studentDlg.obj
?????文件?????????210??2017-12-10?05:08??MFC-master\Debug\student_manifest.rc
............此處省略41個文件信息
評論
共有 條評論