【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了CMenu_1View.cpp提供大家参考,希望对大家有所帮助!
// CMenu_1View.cpp : implementation of the CCMenu_1View class
//
#include "stdafx.h"
#include "CMenu_1.h"
#include "CMenu_1Doc.h"
#include "CMenu_1View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCMenu_1View
IMPLEMENT_DYNCREATE(CCMenu_1View, CView)
BEGIN_MESSAGE_MAP(CCMenu_1View, CView)
//{{AFX_MSG_MAP(CCMenu_1View)
// 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_1View construction/destruction
CCMenu_1View::CCMenu_1View()
{
// TODO: add construction code here
}
CCMenu_1View::~CCMenu_1View()
{
}
BOOL CCMenu_1View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_1View drawing
void CCMenu_1View::OnDraw(CDC* pDC)
{
CCMenu_1Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_1View printing
BOOL CCMenu_1View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCMenu_1View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCMenu_1View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_1View diagnostics
#ifdef _DEBUG
void CCMenu_1View::AssertValid() const
{
CView::AssertValid();
}
void CCMenu_1View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCMenu_1Doc* CCMenu_1View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCMenu_1Doc)));
return (CCMenu_1Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCMenu_1View message handlers
上一篇:
CMenu_1Doc.cpp
下一篇:
最新参考文献中的标点符号