【VC开源代码栏目提醒】:本文主要为网学会员提供DRAGEDITVIEW.CPP,希望对需要DRAGEDITVIEW.CPP网友有所帮助,学习一下!
// DragEditView.cpp : implementation of the CDragEditView class
//
#include "stdafx.h"
#include "DragEdit.h"
#include "DragEditDoc.h"
#include "DragEditView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDragEditView
IMPLEMENT_DYNCREATE(CDragEditView, CView)
BEGIN_MESSAGE_MAP(CDragEditView, CView)
//{{AFX_MSG_MAP(CDragEditView)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CDragEditView construction/destruction
CDragEditView::CDragEditView()
{
// TODO: add construction code here
}
CDragEditView::~CDragEditView()
{
}
BOOL CDragEditView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CDragEditView drawing
void CDragEditView::OnDraw(CDC* pDC)
{
CDragEditDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CDragEditView printing
BOOL CDragEditView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CDragEditView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CDragEditView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CDragEditView diagnostics
#ifdef _DEBUG
void CDragEditView::AssertValid() const
{
CView::AssertValid();
}
void CDragEditView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CDragEditDoc* CDragEditView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDragEditDoc)));
return (CDragEditDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CDragEditView message handlers
上一篇:
DRAGEDITDOC.CPP
下一篇:
其它计算机论文:探究计算机基础教育教学的策略