studentView.h
上传用户:hzzhuce
上传日期:2013-04-01
资源大小:1289k
文件大小:2k
源码类别:

SQL Server

开发平台:

Visual C++

  1. // studentView.h : interface of the CStudentView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_STUDENTVIEW_H__ED34AEDF_3FBA_4D05_8EC2_EAF489C28288__INCLUDED_)
  5. #define AFX_STUDENTVIEW_H__ED34AEDF_3FBA_4D05_8EC2_EAF489C28288__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include"Adddlg.h"
  10. #include"Deletedlg.h"
  11. #include"Modifydlg.h"
  12. #include"Querydlg.h"
  13. #include"Sort.h"
  14. class CStudentSet;
  15. class CStudentView : public CRecordView
  16. {
  17. protected: // create from serialization only
  18. CStudentView();
  19. DECLARE_DYNCREATE(CStudentView)
  20. public:
  21. //{{AFX_DATA(CStudentView)
  22. enum { IDD = IDD_STUDENT_FORM };
  23. CListCtrl m_Record_List;
  24. CStudentSet* m_pSet;
  25. //}}AFX_DATA
  26. // Attributes
  27. public:
  28. CStudentDoc* GetDocument();
  29. // Operations
  30. public:
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CStudentView)
  34. public:
  35. virtual CRecordset* OnGetRecordset();
  36. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  39. virtual void OnInitialUpdate(); // called first time after construct
  40. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  41. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  42. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  43. virtual void OnDraw(CDC* pDC);
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. public:
  47. virtual ~CStudentView();
  48. #ifdef _DEBUG
  49. virtual void AssertValid() const;
  50. virtual void Dump(CDumpContext& dc) const;
  51. #endif
  52. protected:
  53.     int i;
  54. // Generated message map functions
  55. protected:
  56. //{{AFX_MSG(CStudentView)
  57. afx_msg void OnShowButton();
  58. afx_msg void OnAddButton2();
  59. afx_msg void OnDeleteButton();
  60. afx_msg void OnModifyButton();
  61. afx_msg void OnQueryButton();
  62. afx_msg void OnSortButton();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. #ifndef _DEBUG  // debug version in studentView.cpp
  67. inline CStudentDoc* CStudentView::GetDocument()
  68.    { return (CStudentDoc*)m_pDocument; }
  69. #endif
  70. /////////////////////////////////////////////////////////////////////////////
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_STUDENTVIEW_H__ED34AEDF_3FBA_4D05_8EC2_EAF489C28288__INCLUDED_)