// Eg3_2View.cpp : implementation of the CEg3_2View class
//

#include "stdafx.h"
#include "Eg3_2.h"

#include "Eg3_2Doc.h"
#include "Eg3_2View.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CEg3_2View

IMPLEMENT_DYNCREATE(CEg3_2View, CView)

BEGIN_MESSAGE_MAP(CEg3_2View, CView)
	//{{AFX_MSG_MAP(CEg3_2View)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEg3_2View construction/destruction

CEg3_2View::CEg3_2View()
{
	// TODO: add construction code here

}

CEg3_2View::~CEg3_2View()
{
}

BOOL CEg3_2View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CEg3_2View drawing

void CEg3_2View::OnDraw(CDC* pDC)
{
	CEg3_2Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
	pDC->TextOut (60,100,"Hello£¬Welcome to Visual C++ 6.0£”");
}

/////////////////////////////////////////////////////////////////////////////
// CEg3_2View printing

BOOL CEg3_2View::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CEg3_2View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CEg3_2View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CEg3_2View diagnostics

#ifdef _DEBUG
void CEg3_2View::AssertValid() const
{
	CView::AssertValid();
}

void CEg3_2View::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CEg3_2Doc* CEg3_2View::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEg3_2Doc)));
	return (CEg3_2Doc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CEg3_2View message handlers
