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

书籍源码

开发平台:

Visual C++

  1. // OLEDBDepartmentMFCView.h : interface of the COLEDBDepartmentMFCView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_OLEDBDEPARTMENTMFCVIEW_H__3D2A236D_4C1D_11D2_9949_D84454558644__INCLUDED_)
  5. #define AFX_OLEDBDEPARTMENTMFCVIEW_H__3D2A236D_4C1D_11D2_9949_D84454558644__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class COLEDBDepartmentMFCSet;
  10. class COLEDBDepartmentMFCView : public COleDBRecordView
  11. {
  12. protected: // create from serialization only
  13. COLEDBDepartmentMFCView();
  14. DECLARE_DYNCREATE(COLEDBDepartmentMFCView)
  15. public:
  16. //{{AFX_DATA(COLEDBDepartmentMFCView)
  17. enum{ IDD = IDD_OLEDBDEPARTMENTMFC_FORM };
  18. COLEDBDepartmentMFCSet* m_pSet;
  19. // NOTE: the ClassWizard will add data members here
  20. //}}AFX_DATA
  21. // Attributes
  22. public:
  23. COLEDBDepartmentMFCDoc* GetDocument();
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(COLEDBDepartmentMFCView)
  29. public:
  30. virtual CRowset* OnGetRowset();
  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. //}}AFX_VIRTUAL
  36. // Implementation
  37. public:
  38. virtual ~COLEDBDepartmentMFCView();
  39. #ifdef _DEBUG
  40. virtual void AssertValid() const;
  41. virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43. protected:
  44. // Generated message map functions
  45. protected:
  46. //{{AFX_MSG(COLEDBDepartmentMFCView)
  47. // NOTE - the ClassWizard will add and remove member functions here.
  48. //    DO NOT EDIT what you see in these blocks of generated code !
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. #ifndef _DEBUG  // debug version in OLEDBDepartmentMFCView.cpp
  53. inline COLEDBDepartmentMFCDoc* COLEDBDepartmentMFCView::GetDocument()
  54.    { return (COLEDBDepartmentMFCDoc*)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_OLEDBDEPARTMENTMFCVIEW_H__3D2A236D_4C1D_11D2_9949_D84454558644__INCLUDED_)