【VC开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了VC开源代码-CREDITSTESTVIEW.CPP的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
// CreditsTestView.cpp : implementation of the CCreditsTestView class
//
#include "stdafx.h"
#include "CreditsTest.h"
#include "CreditsTestDoc.h"
#include "CreditsTestView.h"
#include "CreditDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCreditsTestView
IMPLEMENT_DYNCREATE(CCreditsTestView, CView)
BEGIN_MESSAGE_MAP(CCreditsTestView, CView)
//{{AFX_MSG_MAP(CCreditsTestView)
ON_WM_LBUTTONDBLCLK()
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CCreditsTestView construction/destruction
CCreditsTestView::CCreditsTestView()
{
}
CCreditsTestView::~CCreditsTestView()
{
}
BOOL CCreditsTestView::PreCreateWindow(CREATESTRUCT& cs)
{
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCreditsTestView drawing
void CCreditsTestView::OnDraw(CDC* pDC)
{
CCreditsTestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
}
/////////////////////////////////////////////////////////////////////////////
// CCreditsTestView printing
BOOL CCreditsTestView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCreditsTestView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
}
void CCreditsTestView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
}
/////////////////////////////////////////////////////////////////////////////
// CCreditsTestView diagnostics
#ifdef _DEBUG
void CCreditsTestView::AssertValid() const
{
CView::AssertValid();
}
void CCreditsTestView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCreditsTestDoc* CCreditsTestView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCreditsTestDoc)));
return (CCreditsTestDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCreditsTestView message handlers
void CCreditsTestView::OnLButtonDblClk(UINT nFlags, CPoint point)
{
CCreditDialog dlg;
dlg.DoModal();
CView::OnLButtonDblClk(nFlags, point);
}
上一篇:
A文献类型.frm
下一篇:
扛起年轻化大旗,哈弗F系玩转行业新风潮