【VC开源代码栏目提醒】:网学会员为需要VC开源代码的朋友们搜集整理了CMenu_9View.cpp相关资料,希望对各位网友有所帮助!
// CMenu_9View.cpp : implementation of the CCMenu_9View class
//
#include "stdafx.h"
#include "CMenu_9.h"
#include "CMenu_9Doc.h"
#include "CMenu_9View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCMenu_9View
IMPLEMENT_DYNCREATE(CCMenu_9View, CView)
BEGIN_MESSAGE_MAP(CCMenu_9View, CView)
//{{AFX_MSG_MAP(CCMenu_9View)
// 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_9View construction/destruction
CCMenu_9View::CCMenu_9View()
{
// TODO: add construction code here
}
CCMenu_9View::~CCMenu_9View()
{
}
BOOL CCMenu_9View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_9View drawing
void CCMenu_9View::OnDraw(CDC* pDC)
{
CCMenu_9Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_9View printing
BOOL CCMenu_9View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCMenu_9View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCMenu_9View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCMenu_9View diagnostics
#ifdef _DEBUG
void CCMenu_9View::AssertValid() const
{
CView::AssertValid();
}
void CCMenu_9View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCMenu_9Doc* CCMenu_9View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCMenu_9Doc)));
return (CCMenu_9Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCMenu_9View message handlers
上一篇:
CMenu_9Doc.cpp
下一篇:
法律专业开题报告范文