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

书籍源码

开发平台:

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. DECLARE_DYNCREATE(COLEDBDepartmentMFCView)
  19. public:
  20. //{{AFX_DATA(COLEDBDepartmentMFCView)
  21. enum{ IDD = IDD_OLEDBDEPARTMENTMFC_FORM };
  22. COLEDBDepartmentMFCSet* m_pSet;
  23. // NOTE: the ClassWizard will add data members here
  24. //}}AFX_DATA
  25. // Attributes
  26. public:
  27. COLEDBDepartmentMFCDoc* GetDocument();
  28. // Operations
  29. public:
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(COLEDBDepartmentMFCView)
  33. public:
  34. virtual CRowset* OnGetRowset();
  35. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  36. virtual BOOL OnMove(UINT nIDMoveCommand);
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  39. virtual void OnInitialUpdate(); // called first time after construct
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. public:
  43. virtual ~COLEDBDepartmentMFCView();
  44. #ifdef _DEBUG
  45. virtual void AssertValid() const;
  46. virtual void Dump(CDumpContext& dc) const;
  47. #endif
  48. protected:
  49. // Generated message map functions
  50. protected:
  51. //{{AFX_MSG(COLEDBDepartmentMFCView)
  52. afx_msg void OnDestroy();
  53. afx_msg void OnEditDeletetctrldel();
  54. afx_msg void OnFileNew();
  55. afx_msg void OnFileOpen();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. };
  59. #ifndef _DEBUG  // debug version in OLEDBDepartmentMFCView.cpp
  60. inline COLEDBDepartmentMFCDoc* COLEDBDepartmentMFCView::GetDocument()
  61.    { return (COLEDBDepartmentMFCDoc*)m_pDocument; }
  62. #endif
  63. /////////////////////////////////////////////////////////////////////////////
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_OLEDBDEPARTMENTMFCVIEW_H__C270A612_4B8D_11D2_9949_D84454558644__INCLUDED_)