progressdemoview.cpp

来自「Visual_C++[1].NET_Bible1 Visual_C++宝典书中」· C++ 代码 · 共 71 行

CPP
71
字号
#include "stdafx.h"
#include "ProgressDemo.h"

#include "ProgressDemoDoc.h"
#include "ProgressDemoView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CProgressDemoView

IMPLEMENT_DYNCREATE(CProgressDemoView, CView)

BEGIN_MESSAGE_MAP(CProgressDemoView, CView)
	//{{AFX_MSG_MAP(CProgressDemoView)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CProgressDemoView construction/destruction

CProgressDemoView::CProgressDemoView()
{
}

CProgressDemoView::~CProgressDemoView()
{
}

BOOL CProgressDemoView::PreCreateWindow(CREATESTRUCT& cs)
{
	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CProgressDemoView drawing

void CProgressDemoView::OnDraw(CDC* pDC)
{
	CProgressDemoDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
}

/////////////////////////////////////////////////////////////////////////////
// CProgressDemoView diagnostics

#ifdef _DEBUG
void CProgressDemoView::AssertValid() const
{
	CView::AssertValid();
}

void CProgressDemoView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CProgressDemoDoc* CProgressDemoView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CProgressDemoDoc)));
	return (CProgressDemoDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CProgressDemoView message handlers

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?