onidledemoview.cpp
来自「Visual C++编程宝典随书光盘里的代码」· C++ 代码 · 共 74 行
CPP
74 行
// 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 + =
减小字号Ctrl + -
显示快捷键?