【VC开源代码栏目提醒】:以下是网学会员为您推荐的VC开源代码-CSDI_7View.cpp,希望本篇文章对您学习有所帮助。
// CSDI_7View.cpp : implementation of the CCSDI_7View class
//
#include "stdafx.h"
#include "CSDI_7.h"
#include "CSDI_7Doc.h"
#include "CSDI_7View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCSDI_7View
IMPLEMENT_DYNCREATE(CCSDI_7View, CView)
BEGIN_MESSAGE_MAP(CCSDI_7View, CView)
//{{AFX_MSG_MAP(CCSDI_7View)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCSDI_7View construction/destruction
CCSDI_7View::CCSDI_7View()
{
// TODO: add construction code here
}
CCSDI_7View::~CCSDI_7View()
{
}
BOOL CCSDI_7View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCSDI_7View drawing
void CCSDI_7View::OnDraw(CDC* pDC)
{
CCSDI_7Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCSDI_7View printing
BOOL CCSDI_7View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCSDI_7View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCSDI_7View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCSDI_7View diagnostics
#ifdef _DEBUG
void CCSDI_7View::AssertValid() const
{
CView::AssertValid();
}
void CCSDI_7View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCSDI_7Doc* CCSDI_7View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCSDI_7Doc)));
return (CCSDI_7Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCSDI_7View message handlers
上一篇:
CSDI_7Doc.cpp
下一篇:
关联分类方法在铝电解中的应用研究