【VC开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了VC开源代码-CMenu_5View.cpp的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
// CMenu_5View.cpp : implementation of the CCMenu_5View class
//
#include "stdafx.h"
#include "CMenu_5.h"
#include "CMenu_5Doc.h"
#include "CMenu_5View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCMenu_5View
IMPLEMENT_DYNCREATE(CCMenu_5View, CView)
BEGIN_MESSAGE_MAP(CCMenu_5View, CView)
//{{AFX_MSG_MAP(CCMenu_5View)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCMenu_5View construction/destruction
CCMenu_5View::CCMenu_5View()
{
// TODO: add construction code here
}
CCMenu_5View::~CCMenu_5View()
{
}
BOOL CCMenu_5View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_5View drawing
void CCMenu_5View::OnDraw(CDC* pDC)
{
CCMenu_5Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_5View printing
BOOL CCMenu_5View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCMenu_5View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCMenu_5View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_5View diagnostics
#ifdef _DEBUG
void CCMenu_5View::AssertValid() const
{
CView::AssertValid();
}
void CCMenu_5View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCMenu_5Doc* CCMenu_5View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCMenu_5Doc)));
return (CCMenu_5Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCMenu_5View message handlers
上一篇:
CMenu_5Doc.cpp
下一篇:
临床前药物安全性评价中毒性病理学新技术的应用