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

书籍源码

开发平台:

Visual C++

  1. // DAODepartmentView.h : interface of the CDAODepartmentView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DAODEPARTMENTVIEW_H__C75F6EEC_943A_11D2_9949_E8E2006C6048__INCLUDED_)
  5. #define AFX_DAODEPARTMENTVIEW_H__C75F6EEC_943A_11D2_9949_E8E2006C6048__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CDAODepartmentSet;
  10. class CDAODepartmentView : public CDaoRecordView
  11. {
  12. protected: // create from serialization only
  13. CDAODepartmentView();
  14. DECLARE_DYNCREATE(CDAODepartmentView)
  15. public:
  16. //{{AFX_DATA(CDAODepartmentView)
  17. enum { IDD = IDD_DAODEPARTMENT_FORM };
  18. CDAODepartmentSet* m_pSet;
  19. //}}AFX_DATA
  20. // Attributes
  21. public:
  22. CDAODepartmentDoc* GetDocument();
  23. // Operations
  24. public:
  25. // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CDAODepartmentView)
  28. public:
  29. virtual CDaoRecordset* 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. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  35. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  36. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. public:
  40. virtual ~CDAODepartmentView();
  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(CDAODepartmentView)
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. #ifndef _DEBUG  // debug version in DAODepartmentView.cpp
  53. inline CDAODepartmentDoc* CDAODepartmentView::GetDocument()
  54.    { return (CDAODepartmentDoc*)m_pDocument; }
  55. #endif
  56. /////////////////////////////////////////////////////////////////////////////
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_DAODEPARTMENTVIEW_H__C75F6EEC_943A_11D2_9949_E8E2006C6048__INCLUDED_)