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__2A271D2C_38DD_11D2_9949_87AD526EFE4A__INCLUDED_)
  5. #define AFX_ODBCDEPARTMENTVIEW_H__2A271D2C_38DD_11D2_9949_87AD526EFE4A__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. // Operations
  26. public:
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CODBCDepartmentView)
  30. public:
  31. virtual CRecordset* OnGetRecordset();
  32. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33. virtual BOOL OnMove(UINT nIDMoveCommand);
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  36. virtual void OnInitialUpdate(); // called first time after construct
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. public:
  40. virtual ~CODBCDepartmentView();
  41. #ifdef _DEBUG
  42. virtual void AssertValid() const;
  43. virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45. protected:
  46. // Generated message map functions
  47. protected:
  48. //{{AFX_MSG(CODBCDepartmentView)
  49. afx_msg void OnRecordAddrecord();
  50. afx_msg void OnRecordDeleterecord();
  51. afx_msg void OnRecordQueryrecord();
  52. afx_msg void OnUpdateRecordDeleterecord(CCmdUI* pCmdUI);
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. #ifndef _DEBUG  // debug version in ODBCDepartmentView.cpp
  57. inline CODBCDepartmentDoc* CODBCDepartmentView::GetDocument()
  58.    { return (CODBCDepartmentDoc*)m_pDocument; }
  59. #endif
  60. /////////////////////////////////////////////////////////////////////////////
  61. //{{AFX_INSERT_LOCATION}}
  62. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  63. #endif // !defined(AFX_ODBCDEPARTMENTVIEW_H__2A271D2C_38DD_11D2_9949_87AD526EFE4A__INCLUDED_)