};
afx_msg void OnPassword(); afx_msg void OnUser(); afx_msg void OnStudent(); afx_msg void OnTeach(); afx_msg void OnTeacher(); afx_msg void OnScore(); afx_msg void OnQueryTeach(); afx_msg void OnQueryScore(); afx_msg void OnCourse(); //}}AFX_MSG
DECLARE_MESSAGE_MAP()
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. // CScoreAddDlg dialog
CScoreAddDlg::CScoreAddDlg(CWnd* pParent /*=NULL*/) }
void CScoreAddDlg::DoDataExchange(CDataExchange* pDX) { }
BEGIN_MESSAGE_MAP(CScoreAddDlg, CDialog)
//{{AFX_MSG_MAP(CScoreAddDlg) //}}AFX_MSG_MAP
CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CScoreAddDlg)
DDX_Control(pDX, IDC_SCORE_STUDENT, m_cStudent); DDX_Control(pDX, IDC_SCORE_SCORE, m_cScore); DDX_Control(pDX, IDC_SCORE_COURSE, m_cCourse); //}}AFX_DATA_MAP
: CDialog(CScoreAddDlg::IDD, pParent) //}}AFX_DATA_INIT
{/{{AFX_DATA_INIT(CScoreAddDlg)
END_MESSAGE_MAP() void CScoreAddDlg::OnOK() {
CString student,course,score,student_no,course_no; m_cStudent.GetWindowText(student); m_cCourse.GetWindowText(course); else//成绩不为空 {
CString strSQL; //查出该学生的学号
m_cScore.GetWindowText(score);