⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 onidledemoview.cpp

📁 VC++编程宝典,电子工业出版社出版,源代码,第一部分
💻 CPP
字号:
// OnIdleDemoView.cpp : implementation of the COnIdleDemoView class
//

#include "stdafx.h"
#include "OnIdleDemo.h"

#include "OnIdleDemoDoc.h"
#include "OnIdleDemoView.h"

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

/////////////////////////////////////////////////////////////////////////////
// COnIdleDemoView

IMPLEMENT_DYNCREATE(COnIdleDemoView, CView)

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

/////////////////////////////////////////////////////////////////////////////
// COnIdleDemoView construction/destruction

COnIdleDemoView::COnIdleDemoView()
{
}

COnIdleDemoView::~COnIdleDemoView()
{
}

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

/////////////////////////////////////////////////////////////////////////////
// COnIdleDemoView drawing

void COnIdleDemoView::OnDraw(CDC* pDC)
{
	COnIdleDemoDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
}

/////////////////////////////////////////////////////////////////////////////
// COnIdleDemoView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// COnIdleDemoView message handlers

⌨️ 快捷键说明

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