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

书籍源码

开发平台:

Visual C++

  1. // OLEDBReportMFCView.h : interface of the COLEDBReportMFCView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_OLEDBREPORTMFCVIEW_H__52C04160_4E05_11D2_9949_F7F727FAE648__INCLUDED_)
  5. #define AFX_OLEDBREPORTMFCVIEW_H__52C04160_4E05_11D2_9949_F7F727FAE648__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "StudentsPerClass.h"
  10. class COLEDBReportMFCView : public CScrollView
  11. {
  12. protected: // create from serialization only
  13. COLEDBReportMFCView();
  14. void OutputReport(CDC* pDC, CPrintInfo* pInfo = NULL);
  15. DECLARE_DYNCREATE(COLEDBReportMFCView)
  16. // Attributes
  17. public:
  18. COLEDBReportMFCDoc* GetDocument();
  19. CStudentsPerClass* m_pSet;
  20. // Operations
  21. public:
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(COLEDBReportMFCView)
  25. public:
  26. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  27. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28. protected:
  29. virtual void OnInitialUpdate(); // called first time after construct
  30. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  31. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  32. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  33. virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. public:
  37. virtual ~COLEDBReportMFCView();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. protected:
  43. // Generated message map functions
  44. protected:
  45. //{{AFX_MSG(COLEDBReportMFCView)
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. #ifndef _DEBUG  // debug version in OLEDBReportMFCView.cpp
  50. inline COLEDBReportMFCDoc* COLEDBReportMFCView::GetDocument()
  51.    { return (COLEDBReportMFCDoc*)m_pDocument; }
  52. #endif
  53. /////////////////////////////////////////////////////////////////////////////
  54. //{{AFX_INSERT_LOCATION}}
  55. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  56. #endif // !defined(AFX_OLEDBREPORTMFCVIEW_H__52C04160_4E05_11D2_9949_F7F727FAE648__INCLUDED_)