SHEETREPORT.H
上传用户:lvjun8202
上传日期:2013-04-30
资源大小:797k
文件大小:2k
- #if !defined(AFX_SHEETREPORT_H__FB37B9E6_1701_11D3_BAC3_12345600558E__INCLUDED_)
- #define AFX_SHEETREPORT_H__FB37B9E6_1701_11D3_BAC3_12345600558E__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "SheetsWnd.h"
- #include "DragPage.h"
- //#include "ShowCase.h"
- //#include "ReportView.h"
- #include "OutputReport.h"
- typedef CTypedPtrArray <CObArray, COutputReport*> CEditArray;
- class CSheetReport : public CSheetsWnd
- {
- public:
- void Splash(CWnd * pView);
- virtual CBrush * GetPageBkBrush(CWnd * pView);
- virtual CBrush * GetPageBkBrush(int nPage);
- void Splash(int nPage);
- COutputReport * GetPageAt(int nIndex);
- int AddPage(CWnd * pWnd);
- int GetPageIndex(LPCTSTR lpszTitle);
- virtual void RemovePage(int nPage);
- virtual void RemovePage(LPCTSTR lpszTitle);
- virtual void ShowScrollBar(BOOL bShow = TRUE);
- virtual int AddPage(LPCTSTR lpszTitle);
- virtual CScrollBar& GetScrollBar();
- virtual void SetActiveView(CWnd* pView);
- virtual CString GetViewTitle(CWnd* pView);
- virtual CWnd* GetActiveView();
- CSheetReport();
- virtual ~CSheetReport();
- virtual CWnd* GetNextView();
- virtual CWnd* GetFirstView();
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSheetReport)
- //}}AFX_VIRTUAL
- protected:
- virtual CRect EraseExclude();
- virtual void Draw(CDC* pDC);
- virtual CRect GetSplitterRect();
- virtual int GetPageIndex(CWnd * pWnd);
- virtual void Resize(HWND hWndParent);
- virtual void EndDrag(CPoint ptn);
- virtual void TrackDrag(CPoint ptn);
- virtual void BeginDrag(CPoint ptn);
- //{{AFX_MSG(CSheetReport)
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- afx_msg void OnTimer(UINT nIDEvent);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CDragPage m_sPageDrag;
- BOOL bSplitter();
- void RecalcDrawRect();
- int m_nDXSplitter;
- double m_fDXScrollBar;
- CScrollBar m_sbHorz;
- // CStringArray m_strTitles;
- CEditArray m_arrViews;
- int m_nActive, m_nFind;
- CPoint m_bPointCaptured;
- BOOL m_bCaptured;
- };
- #endif // !defined(AFX_SHEETREPORT_H__FB37B9E6_1701_11D3_BAC3_12345600558E__INCLUDED_)