/***************************************************************************
**
**    $Header:   D:/ECB2S/SRC/LOG/SPATVW.H__   1.2.1.4   17 Apr 1997 16:00:16   ZJRD  $
**
**    $Log:   D:/ECB2S/SRC/LOG/SPATVW.H__  $
** 
**    Rev 1.2.1.4   17 Apr 1997 16:00:16   ZJRD
** No change.
** 
**    Rev 1.2.1.3   16 Apr 1997 10:33:10   ZJRD
** No change.
** 
**    Rev 1.2.1.2   10 Apr 1997 15:42:40   ZJRD
** No change.
** 
**    Rev 1.2.1.1   03 Apr 1997 15:21:22   ZJRD
** No change.
** 
**    Rev 1.2.1.0   28 Mar 1997 10:25:34   ZJRD
** easy pack sld 2.09d
** 
**    Rev 1.1   19 Mar 1997 11:35:32   ZJRD
** No change.
** 
**    Rev 1.0   12 Mar 1997 14:50:02   ZJRD
** Initial revision.
** 
**    Rev 1.0.1.0   11 Nov 1996 12:59:38   ZJRD
** EasyPack/SLD Version 2.01
** 
**    Rev 1.4   09 Sep 1996 13:18:50   ZJRD
** No change.
** 
**    Rev 1.3   05 Sep 1996 11:30:20   ZJRD
** No change.
** 
**    Rev 1.2   02 Sep 1996 09:57:24   ZJRD
** No change.
** 
**    Rev 1.1   28 Aug 1996 15:52:40   ZJRD
** EasyPack/SLD Version 1.9b
** 
**    Rev 1.0   12 Aug 1996 10:56:06   ZJRD
** Initial revision.
** 
****************************************************************************/

/////////////////////////////////////////////////////////////////////////////
//
//  File name: SPATVW.H
//
//  Description: The header file for the class: CSpaTextView.
//
//  Author: Chen Jun
//
//  Date: 06/19/96
//
//  Modification:
//      1. 06/19/96, Initial version of the class: CSpaTextView.
//
//  Copyright (C) 1996 Microtek International. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _SPATVW_H_
#define _SPATVW_H_


/////////////////////////////////////////////////////////////////////////////
// CSpaTextView view

class CSpaTextView : public CScrollView
{
	DECLARE_DYNCREATE(CSpaTextView)
protected:
	CSpaTextView();			// protected constructor used by dynamic creation

// Attributes
private:
    int m_nFontWidth;
    int m_nFontHeight;
    
public:

// Operations
public:
	void UpdateCoverageInfo(const CString& strModule);

private:
	void DisplayDocContent(CDC* pDC);

// Overrides
public:

protected:
	virtual	void OnDraw(CDC* pDC);		// overridden to draw this view
	virtual	void OnInitialUpdate();		// first time after construct
    virtual CSpaTextDoc* GetDocument();
    virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);

// Implementation
protected:
	virtual ~CSpaTextView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CSpaTextView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#endif
