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

书籍源码

开发平台:

Visual C++

  1. // OLEDBTextConsumerView.h : interface of the COLEDBTextConsumerView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_OLEDBTEXTCONSUMERVIEW_H__1A082C0C_C8D8_11D2_9949_D68A87749F4B__INCLUDED_)
  5. #define AFX_OLEDBTEXTCONSUMERVIEW_H__1A082C0C_C8D8_11D2_9949_D68A87749F4B__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class COLEDBTextConsumerSet;
  10. class COLEDBTextConsumerView : public COleDBRecordView
  11. {
  12. protected: // create from serialization only
  13. COLEDBTextConsumerView();
  14. DECLARE_DYNCREATE(COLEDBTextConsumerView)
  15. public:
  16. //{{AFX_DATA(COLEDBTextConsumerView)
  17. enum{ IDD = IDD_OLEDBTEXTCONSUMER_FORM };
  18. COLEDBTextConsumerSet* m_pSet;
  19. // NOTE: the ClassWizard will add data members here
  20. //}}AFX_DATA
  21. // Attributes
  22. public:
  23. COLEDBTextConsumerDoc* GetDocument();
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(COLEDBTextConsumerView)
  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 ~COLEDBTextConsumerView();
  40. #ifdef _DEBUG
  41. virtual void AssertValid() const;
  42. virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44. protected:
  45. // Generated message map functions
  46. protected:
  47. //{{AFX_MSG(COLEDBTextConsumerView)
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. #ifndef _DEBUG  // debug version in OLEDBTextConsumerView.cpp
  52. inline COLEDBTextConsumerDoc* COLEDBTextConsumerView::GetDocument()
  53.    { return (COLEDBTextConsumerDoc*)m_pDocument; }
  54. #endif
  55. /////////////////////////////////////////////////////////////////////////////
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_OLEDBTEXTCONSUMERVIEW_H__1A082C0C_C8D8_11D2_9949_D68A87749F4B__INCLUDED_)