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__246081EF_D830_11D2_9949_D89162B4264B__INCLUDED_)
  5. #define AFX_OLEDBDEPARTMENTMFCVIEW_H__246081EF_D830_11D2_9949_D89162B4264B__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.     BOOL m_bChangesMade;
  14.     BOOL SaveRecord();
  15. COLEDBDepartmentMFCView();
  16. DECLARE_DYNCREATE(COLEDBDepartmentMFCView)
  17. public:
  18. //{{AFX_DATA(COLEDBDepartmentMFCView)
  19. enum{ IDD = IDD_OLEDBDEPARTMENTMFC_FORM };
  20. COLEDBDepartmentMFCSet* m_pSet;
  21. // NOTE: the ClassWizard will add data members here
  22. //}}AFX_DATA
  23. // Attributes
  24. public:
  25. COLEDBDepartmentMFCDoc* GetDocument();
  26. // Operations
  27. public:
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(COLEDBDepartmentMFCView)
  31. public:
  32. virtual CRowset* OnGetRowset();
  33. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  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 ~COLEDBDepartmentMFCView();
  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(COLEDBDepartmentMFCView)
  49. afx_msg void OnChangeDepartmentcode();
  50. afx_msg void OnChangeDepartmentname();
  51. afx_msg void OnFileSave();
  52. afx_msg void OnDestroy();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. #ifndef _DEBUG  // debug version in OLEDBDepartmentMFCView.cpp
  57. inline COLEDBDepartmentMFCDoc* COLEDBDepartmentMFCView::GetDocument()
  58.    { return (COLEDBDepartmentMFCDoc*)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_OLEDBDEPARTMENTMFCVIEW_H__246081EF_D830_11D2_9949_D89162B4264B__INCLUDED_)