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