www.pudn.com > EasyReport.rar > EasyReportView.h
// EasyReportView.h : interface of the CEasyReportView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EASYREPORTVIEW_H__40CD4206_BF0A_4E30_9D7A_29D5B27FB99F__INCLUDED_)
#define AFX_EASYREPORTVIEW_H__40CD4206_BF0A_4E30_9D7A_29D5B27FB99F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GridCtrl_src/GridCtrl.h"
class CEasyReportView : public CScrollView
{
protected: // create from serialization only
CEasyReportView();
DECLARE_DYNCREATE(CEasyReportView)
// Attributes
public:
CEasyReportDoc* GetDocument();
void SetGridHead();
CGridCtrl* m_pGridCtrl;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEasyReportView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CEasyReportView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CEasyReportView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDeletecol();
afx_msg void OnDeleterow();
afx_msg void OnInscol();
afx_msg void OnInsrow();
afx_msg void OnMerge();
afx_msg void OnUnmerge();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in EasyReportView.cpp
inline CEasyReportDoc* CEasyReportView::GetDocument()
{ return (CEasyReportDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EASYREPORTVIEW_H__40CD4206_BF0A_4E30_9D7A_29D5B27FB99F__INCLUDED_)