www.pudn.com > PressMonitor_q.zip > FaultView.h


#if !defined(AFX_FAULTVIEW_H__637BEB05_63AA_11D0_99A1_000021004832__INCLUDED_) 
#define AFX_FAULTVIEW_H__637BEB05_63AA_11D0_99A1_000021004832__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// FaultView.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CFaultView view 
 
class CFaultView : public CListView 
{ 
protected: 
	CFaultView();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(CFaultView) 
protected: 
	enum {nLinesPerPage=32}; 
	enum {NUM_COLUMNS = 3}; 
	int			m_cx; 
	BOOL		m_nEdit; 
	int         nSortedCol;  
	BOOL        bSortAscending; 
	BOOL		m_DisplayColumn [NUM_COLUMNS]; 
protected: 
	long m_nRecordCount; 
protected: 
	enum 
	{ 
		COL_NAME  	= 0, 
		COL_TIME	= 1, 
		COL_NOTE    = 2, 
	}; 
 
	static UINT	m_ColumnLabelID [NUM_COLUMNS];	// list view control header IDs, loaded from resource 
	static int	m_ColumnFormat  [NUM_COLUMNS];	// list view column format 
	int			m_ColumnWidth   [NUM_COLUMNS]; 
 
	CImageList* m_pImageList; 
// Attributes 
public: 
	int m_nPage; 
	CRect m_rectPrint; 
	CRect m_rectTitle; 
	CRect m_rectHeader; 
	CRect m_rectRecords; 
	CRect m_rectFooter; 
 
// Operations 
public: 
	int m_nItemIndex; 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CFaultView) 
	public: 
	virtual void OnInitialUpdate(); 
	protected: 
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); 
	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 
protected: 
	virtual ~CFaultView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CFaultView) 
	afx_msg void OnDbManage(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	void OnDBDeleteAll(COleDateTime time); 
	void PrintPageFooter(CDC* pDC); 
	void PrintPageHeader(CDC* pDC); 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_FAULTVIEW_H__637BEB05_63AA_11D0_99A1_000021004832__INCLUDED_)