【VC开源代码栏目提醒】:网学会员--在 VC开源代码编辑为广大网友搜集整理了:CCHange_3View.cpp绩等信息,祝愿广大网友取得需要的信息,参考学习。
// CCHange_3View.cpp : implementation of the CCCHange_3View class
//
#include "stdafx.h"
#include "CCHange_3.h"
#include "CCHange_3Doc.h"
#include "CCHange_3View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCCHange_3View
IMPLEMENT_DYNCREATE(CCCHange_3View, CView)
BEGIN_MESSAGE_MAP(CCCHange_3View, CView)
//{{AFX_MSG_MAP(CCCHange_3View)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCCHange_3View construction/destruction
CCCHange_3View::CCCHange_3View()
{
// TODO: add construction code here
}
CCCHange_3View::~CCCHange_3View()
{
}
BOOL CCCHange_3View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCCHange_3View drawing
void CCCHange_3View::OnDraw(CDC* pDC)
{
CCCHange_3Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCCHange_3View printing
BOOL CCCHange_3View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCCHange_3View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCCHange_3View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCCHange_3View diagnostics
#ifdef _DEBUG
void CCCHange_3View::AssertValid() const
{
CView::AssertValid();
}
void CCCHange_3View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCCHange_3Doc* CCCHange_3View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCCHange_3Doc)));
return (CCCHange_3Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCCHange_3View message handlers