DateBaseView.h
上传用户:z_mail1980
上传日期:2007-06-01
资源大小:647k
文件大小:2k
源码类别:

SNMP编程

开发平台:

Visual C++

  1. // DateBaseView.h : interface of the CDateBaseView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DATEBASEVIEW_H__7D97302A_D8C9_4E09_813F_73C349DAA8AB__INCLUDED_)
  5. #define AFX_DATEBASEVIEW_H__7D97302A_D8C9_4E09_813F_73C349DAA8AB__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CDateBaseSet;
  10. class CDateBaseView : public CRecordView
  11. {
  12. protected: // create from serialization only
  13. CDateBaseView();
  14. DECLARE_DYNCREATE(CDateBaseView)
  15. public:
  16. //{{AFX_DATA(CDateBaseView)
  17. enum { IDD = IDD_DATEBASE_FORM };
  18. CDateBaseSet* m_pSet;
  19. COleDateTime m_oledtDOB;
  20. //}}AFX_DATA
  21. // Attributes
  22. public:
  23. CDateBaseDoc* GetDocument();
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CDateBaseView)
  29. public:
  30. virtual CRecordset* OnGetRecordset();
  31. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  34. virtual void OnInitialUpdate(); // called first time after construct
  35. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  36. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  37. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. public:
  41. virtual ~CDateBaseView();
  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(CDateBaseView)
  50. afx_msg void OnRecordNew();
  51. afx_msg void OnRecordDelete();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. };
  55. #ifndef _DEBUG  // debug version in DateBaseView.cpp
  56. inline CDateBaseDoc* CDateBaseView::GetDocument()
  57.    { return (CDateBaseDoc*)m_pDocument; }
  58. #endif
  59. /////////////////////////////////////////////////////////////////////////////
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_DATEBASEVIEW_H__7D97302A_D8C9_4E09_813F_73C349DAA8AB__INCLUDED_)