// ScoreInfo.cpp: importation file //
#include "stdafx.h" #include "train.h" #include "scoreinfo.h" #include "scorest.h" #ifdef _debug # define new debug_new # undef this_filestatic char this_file [] = __file __; # ENDIF
/// CSCoreInfo Dialog
CSCoreInfo :: CScoreInfo (cwnd * pparent / * = null * /): cdialog (cscoreInfo :: IDD, pParent) {// {{AFX_DATA_INIT (CSCOREINFO) m_personid = 0; m_course = _t ("); m_teacherid = 0; m_score2 = 0; m_score1 = 0; m_teachernote = _t ("); m_date = 0; //}} AFX_DATA_INIT}
void CScoreInfo :: DoDataExchange (CDataExchange * pDX) {CDialog :: DoDataExchange (pDX); // {{AFX_DATA_MAP (CScoreInfo) DDX_Text (pDX, IDC_EDIT2, m_courseid); DDX_Text (pDX, IDC_EDIT4, m_site); DDX_Text (pDX, IDC_EDIT9 , m_teacherid); DDX_Text (pDX, IDC_EDIT7, m_score2); DDX_Text (pDX, IDC_EDIT6, m_score1); DDX_Text (pDX, IDC_EDIT8, m_teachernote); DDX_DateTimeCtrl (pDX, IDC_DATETIMEPICKER2, m_date); //}} AFX_DATA_MAP}
Begin_MESSAGE_MAP (CSCOREINFO, CDIALOG) / / {{AFX_MSG_MAP (CSCOREINFO) ON_BN_CLICKED (IDC_BUTTONRESET, ONBUTTONRESET) / /}} AFX_MSG_MAPEND_MESSAGE_MAP ()
/// CSCoreInfo Message Handlers
Void cscoreInfo :: oncancel () {// Todo: add extra cleanup here m_database.close (); cdialog :: oncancel ();
void CScoreInfo :: OnButtonreset () {// TODO: Add your control notification handler code here m_courseid = 0; m_personid = 0; m_score1 = 0; m_score2 = 0; m_site.Empty (); m_teacherid = 0; UpdateData (FALSE); }