OLEDBDepartmentMFCView.h
上传用户:benben_wyd
上传日期:2010-02-26
资源大小:1229k
文件大小:3k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // OLEDBDepartmentMFCView.h : interface of the COLEDBDepartmentMFCView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_OLEDBDEPARTMENTMFCVIEW_H__C270A612_4B8D_11D2_9949_D84454558644__INCLUDED_)
  5. #define AFX_OLEDBDEPARTMENTMFCVIEW_H__C270A612_4B8D_11D2_9949_D84454558644__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class COLEDBDepartmentMFCSet;
  10. class COLEDBDepartmentMFCView : public COleDBRecordView
  11. {
  12. protected: // create from serialization only
  13. COLEDBDepartmentMFCView();
  14. BOOL SaveRecord();
  15. void AddRecord();
  16. void ResetRowSet();
  17. BOOL m_bAddingRecord;
  18. BOOL m_bChangesMade;
  19. DECLARE_DYNCREATE(COLEDBDepartmentMFCView)
  20. public:
  21. //{{AFX_DATA(COLEDBDepartmentMFCView)
  22. enum{ IDD = IDD_OLEDBDEPARTMENTMFC_FORM };
  23. COLEDBDepartmentMFCSet* m_pSet;
  24. // NOTE: the ClassWizard will add data members here
  25. //}}AFX_DATA
  26. // Attributes
  27. public:
  28. COLEDBDepartmentMFCDoc* GetDocument();
  29. // Operations
  30. public:
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(COLEDBDepartmentMFCView)
  34. public:
  35. virtual CRowset* OnGetRowset();
  36. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  37. virtual BOOL OnMove(UINT nIDMoveCommand);
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  40. virtual void OnInitialUpdate(); // called first time after construct
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. public:
  44. virtual ~COLEDBDepartmentMFCView();
  45. #ifdef _DEBUG
  46. virtual void AssertValid() const;
  47. virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49. protected:
  50. // Generated message map functions
  51. protected:
  52. //{{AFX_MSG(COLEDBDepartmentMFCView)
  53. afx_msg void OnDestroy();
  54. afx_msg void OnEditDeletetctrldel();
  55. afx_msg void OnFileNew();
  56. afx_msg void OnFileOpen();
  57. afx_msg void OnFileSave();
  58. afx_msg void OnChangeDepartmentcode();
  59. afx_msg void OnChangeDepartmentname();
  60. afx_msg void OnChangeEmail();
  61. afx_msg void OnChangeInstructorname();
  62. afx_msg void OnChangeNotes();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. #ifndef _DEBUG  // debug version in OLEDBDepartmentMFCView.cpp
  67. inline COLEDBDepartmentMFCDoc* COLEDBDepartmentMFCView::GetDocument()
  68.    { return (COLEDBDepartmentMFCDoc*)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_OLEDBDEPARTMENTMFCVIEW_H__C270A612_4B8D_11D2_9949_D84454558644__INCLUDED_)