【VC开源代码栏目提醒】:网学会员,鉴于大家对VC开源代码十分关注,论文会员在此为大家搜集整理了“CMenu_6View.cpp”一文,供大家参考学习!
// CMenu_6View.cpp : implementation of the CCMenu_6View class
//
#include "stdafx.h"
#include "CMenu_6.h"
#include "CMenu_6Doc.h"
#include "CMenu_6View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCMenu_6View
IMPLEMENT_DYNCREATE(CCMenu_6View, CView)
BEGIN_MESSAGE_MAP(CCMenu_6View, CView)
//{{AFX_MSG_MAP(CCMenu_6View)
// 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_6View construction/destruction
CCMenu_6View::CCMenu_6View()
{
// TODO: add construction code here
}
CCMenu_6View::~CCMenu_6View()
{
}
BOOL CCMenu_6View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_6View drawing
void CCMenu_6View::OnDraw(CDC* pDC)
{
CCMenu_6Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_6View printing
BOOL CCMenu_6View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCMenu_6View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCMenu_6View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_6View diagnostics
#ifdef _DEBUG
void CCMenu_6View::AssertValid() const
{
CView::AssertValid();
}
void CCMenu_6View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCMenu_6Doc* CCMenu_6View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCMenu_6Doc)));
return (CCMenu_6Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCMenu_6View message handlers
上一篇:
CMenu_6Doc.cpp
下一篇:
"五一"出游谨防"低价"陷阱 消协提醒五项注意