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

书籍源码

开发平台:

Visual C++

  1. // OLEDBMFCBlobView.h : interface of the COLEDBMFCBlobView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_OLEDBMFCBLOBVIEW_H__2126A6EC_B381_11D2_9949_AF1E89DECD4A__INCLUDED_)
  5. #define AFX_OLEDBMFCBLOBVIEW_H__2126A6EC_B381_11D2_9949_AF1E89DECD4A__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class COLEDBMFCBlobSet;
  10. class COLEDBMFCBlobView : public COleDBRecordView
  11. {
  12. protected: // create from serialization only
  13. COLEDBMFCBlobView();
  14. DECLARE_DYNCREATE(COLEDBMFCBlobView)
  15. public:
  16. //{{AFX_DATA(COLEDBMFCBlobView)
  17. enum { IDD = IDD_OLEDBMFCBLOB_FORM };
  18. COLEDBMFCBlobSet* m_pSet;
  19. //}}AFX_DATA
  20. // Attributes
  21. public:
  22. BOOL UpdateData(BOOL bSaveAndValidate=TRUE);
  23. COLEDBMFCBlobDoc* GetDocument();
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(COLEDBMFCBlobView)
  29. public:
  30. virtual CRowset* OnGetRowset();
  31. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32. virtual BOOL OnMove(UINT nIDMoveCommand);
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  35. virtual void OnInitialUpdate(); // called first time after construct
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. public:
  39. virtual ~COLEDBMFCBlobView();
  40. #ifdef _DEBUG
  41. virtual void AssertValid() const;
  42. virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44. protected:
  45. BOOL m_bCommentChange;
  46. // Generated message map functions
  47. protected:
  48. //{{AFX_MSG(COLEDBMFCBlobView)
  49. afx_msg void OnChangeComment();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. #ifndef _DEBUG  // debug version in OLEDBMFCBlobView.cpp
  54. inline COLEDBMFCBlobDoc* COLEDBMFCBlobView::GetDocument()
  55.    { return (COLEDBMFCBlobDoc*)m_pDocument; }
  56. #endif
  57. /////////////////////////////////////////////////////////////////////////////
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_OLEDBMFCBLOBVIEW_H__2126A6EC_B381_11D2_9949_AF1E89DECD4A__INCLUDED_)