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

数据库系统

开发平台:

Visual C++

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