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