www.pudn.com > MultiView.rar > DynScrollView.cpp
// DynScrollView.cpp : implementation file
//
#include "stdafx.h"
#include "Test.h"
#include "DynScrollView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDynScrollView
IMPLEMENT_DYNCREATE(CDynScrollView, CView)
CDynScrollView::CDynScrollView()
{
}
CDynScrollView::~CDynScrollView()
{
}
BEGIN_MESSAGE_MAP(CDynScrollView, CView)
//{{AFX_MSG_MAP(CDynScrollView)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDynScrollView drawing
void CDynScrollView::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
// TODO: add draw code here
pDC->MoveTo(0,0);
pDC->LineTo(100,100);
pDC->LineTo(300,100);
pDC->TextOut(200,200,"DynScrollView");
}
/////////////////////////////////////////////////////////////////////////////
// CDynScrollView diagnostics
#ifdef _DEBUG
void CDynScrollView::AssertValid() const
{
CView::AssertValid();
}
void CDynScrollView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CDynScrollView message handlers