【VC开源代码栏目提醒】:本文主要为网学会员提供CMenu_8View.cpp,希望对需要CMenu_8View.cpp网友有所帮助,学习一下!
// CMenu_8View.cpp : implementation of the CCMenu_8View class
//
#include "stdafx.h"
#include "CMenu_8.h"
#include "CMenu_8Doc.h"
#include "CMenu_8View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCMenu_8View
IMPLEMENT_DYNCREATE(CCMenu_8View, CView)
BEGIN_MESSAGE_MAP(CCMenu_8View, CView)
//{{AFX_MSG_MAP(CCMenu_8View)
// 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_8View construction/destruction
CCMenu_8View::CCMenu_8View()
{
// TODO: add construction code here
}
CCMenu_8View::~CCMenu_8View()
{
}
BOOL CCMenu_8View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_8View drawing
void CCMenu_8View::OnDraw(CDC* pDC)
{
CCMenu_8Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_8View printing
BOOL CCMenu_8View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCMenu_8View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCMenu_8View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_8View diagnostics
#ifdef _DEBUG
void CCMenu_8View::AssertValid() const
{
CView::AssertValid();
}
void CCMenu_8View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCMenu_8Doc* CCMenu_8View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCMenu_8Doc)));
return (CCMenu_8Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCMenu_8View message handlers
上一篇:
CMenu_8Doc.cpp
下一篇:
多年来只想说一句,我不怪你