StudentDlg.h
上传用户:rs600066
上传日期:2017-10-16
资源大小:4788k
文件大小:2k
源码类别:

数据库系统

开发平台:

Visual C++

  1. #if !defined(AFX_STUDENTDLG_H__59A4C99D_33BD_4E76_883D_D850D7A58584__INCLUDED_)
  2. #define AFX_STUDENTDLG_H__59A4C99D_33BD_4E76_883D_D850D7A58584__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // StudentDlg.h : header file
  7. //
  8. #include "studentset.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CStudentDlg dialog
  11. class CStudentDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CStudentDlg(CWnd* pParent = NULL);   // standard constructor
  16. // Dialog Data
  17. //{{AFX_DATA(CStudentDlg)
  18. enum { IDD = IDD_DIALOG_STUDENT };
  19. CListCtrl m_ctrList;
  20. CComboBox m_ctrMajor;
  21. CComboBox m_ctrDepartment;
  22. CComboBox m_ctrClass;
  23. CString m_strClass;
  24. CString m_strDepartment;
  25. CString m_strMajor;
  26. //}}AFX_DATA
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CStudentDlg)
  30. protected:
  31. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. protected:
  35. // Generated message map functions
  36. //{{AFX_MSG(CStudentDlg)
  37. virtual BOOL OnInitDialog();
  38. afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
  39. afx_msg void OnButtonNew();
  40. afx_msg void OnButtonModify();
  41. afx_msg void OnButtonDelete();
  42. afx_msg void OnButtonBrowse();
  43. afx_msg void OnSetfocusComboMajor();
  44. afx_msg void OnSetfocusComboClass();
  45. afx_msg void OnSelchangeComboDepartment();
  46. afx_msg void OnSelchangeComboMajor();
  47. afx_msg void OnButtonSearch();
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. private:
  51. CStudentSet m_recordset ;
  52. void RefreshData(CString strSQL);
  53. };
  54. //{{AFX_INSERT_LOCATION}}
  55. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  56. #endif // !defined(AFX_STUDENTDLG_H__59A4C99D_33BD_4E76_883D_D850D7A58584__INCLUDED_)