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

书籍源码

开发平台:

Visual C++

  1. // ODBCDepartmentView.h : interface of the CODBCDepartmentView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_ODBCDEPARTMENTVIEW_H__4C511D25_3A73_11D2_9949_CA74FE5E5648__INCLUDED_)
  5. #define AFX_ODBCDEPARTMENTVIEW_H__4C511D25_3A73_11D2_9949_CA74FE5E5648__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CODBCDepartmentSet;
  10. class CODBCDepartmentView : public CRecordView
  11. {
  12. protected: // create from serialization only
  13. CODBCDepartmentView();
  14. DECLARE_DYNCREATE(CODBCDepartmentView)
  15. public:
  16. //{{AFX_DATA(CODBCDepartmentView)
  17. enum { IDD = IDD_ODBCDEPARTMENT_FORM };
  18. CODBCDepartmentSet* m_pSet;
  19. CString m_FindDeptCode;
  20. //}}AFX_DATA
  21. // Attributes
  22. public:
  23. CODBCDepartmentDoc* GetDocument();
  24. BOOL m_bAddingRecord;
  25. BOOL m_bFieldsChanged;
  26. // Operations
  27. public:
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CODBCDepartmentView)
  31. public:
  32. virtual CRecordset* OnGetRecordset();
  33. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  34. virtual BOOL OnMove(UINT nIDMoveCommand);
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  37. virtual void OnInitialUpdate(); // called first time after construct
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. public:
  41. virtual ~CODBCDepartmentView();
  42. #ifdef _DEBUG
  43. virtual void AssertValid() const;
  44. virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46. protected:
  47. // Generated message map functions
  48. protected:
  49. //{{AFX_MSG(CODBCDepartmentView)
  50. afx_msg void OnRecordDeleterecord();
  51. afx_msg void OnUpdateRecordDeleterecord(CCmdUI* pCmdUI);
  52. afx_msg void OnRecordQueryrecord();
  53. afx_msg void OnFileNew();
  54. afx_msg void OnFileSave();
  55. afx_msg void OnDestroy();
  56. afx_msg void OnChangeDepartmentcode();
  57. afx_msg void OnChangeDepartmentname();
  58. afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
  59. //}}AFX_MSG
  60. DECLARE_MESSAGE_MAP()
  61. };
  62. #ifndef _DEBUG  // debug version in ODBCDepartmentView.cpp
  63. inline CODBCDepartmentDoc* CODBCDepartmentView::GetDocument()
  64.    { return (CODBCDepartmentDoc*)m_pDocument; }
  65. #endif
  66. /////////////////////////////////////////////////////////////////////////////
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  69. #endif // !defined(AFX_ODBCDEPARTMENTVIEW_H__4C511D25_3A73_11D2_9949_CA74FE5E5648__INCLUDED_)