www.pudn.com > NavigateTest.rar > NavigateTestView.cpp
// NavigateTestView.cpp : implementation of the CNavigateTestView class
//
#include "stdafx.h"
#include "NavigateTest.h"
#include "NavigateTestDoc.h"
#include "NavigateTestView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CNavigateTestView
IMPLEMENT_DYNCREATE(CNavigateTestView, CView)
BEGIN_MESSAGE_MAP(CNavigateTestView, CView)
//{{AFX_MSG_MAP(CNavigateTestView)
// 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
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CNavigateTestView construction/destruction
CNavigateTestView::CNavigateTestView()
{
// TODO: add construction code here
}
CNavigateTestView::~CNavigateTestView()
{
}
BOOL CNavigateTestView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CNavigateTestView drawing
void CNavigateTestView::OnDraw(CDC* pDC)
{
CNavigateTestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CNavigateTestView diagnostics
#ifdef _DEBUG
void CNavigateTestView::AssertValid() const
{
CView::AssertValid();
}
void CNavigateTestView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CNavigateTestDoc* CNavigateTestView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CNavigateTestDoc)));
return (CNavigateTestDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CNavigateTestView message handlers