rcvview.cpp

来自「MFC编程实例」· C++ 代码 · 共 77 行

CPP
77
字号
#include "stdafx.h"
#include "MsgRcv.h"

#include "RcvDoc.h"
#include "RcvView.h"

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

IMPLEMENT_DYNCREATE(CMsgRcvView, CListView)

BEGIN_MESSAGE_MAP(CMsgRcvView, CListView)
	//{{AFX_MSG_MAP(CMsgRcvView)
	//}}AFX_MSG_MAP
	ON_COMMAND(ID_FILE_PRINT, CListView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CListView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CListView::OnFilePrintPreview)
END_MESSAGE_MAP()

CMsgRcvView::CMsgRcvView()
{
}

CMsgRcvView::~CMsgRcvView()
{
}

BOOL CMsgRcvView::PreCreateWindow(CREATESTRUCT& cs)
{
	return CListView::PreCreateWindow(cs);
}

void CMsgRcvView::OnDraw(CDC* pDC)
{
	CMsgRcvDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
}

void CMsgRcvView::OnInitialUpdate()
{
	CListView::OnInitialUpdate();
}

BOOL CMsgRcvView::OnPreparePrinting(CPrintInfo* pInfo)
{
	return DoPreparePrinting(pInfo);
}

void CMsgRcvView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
}

void CMsgRcvView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
}

#ifdef _DEBUG
void CMsgRcvView::AssertValid() const
{
	CListView::AssertValid();
}

void CMsgRcvView::Dump(CDumpContext& dc) const
{
	CListView::Dump(dc);
}

CMsgRcvDoc* CMsgRcvView::GetDocument()
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMsgRcvDoc)));
	return (CMsgRcvDoc*)m_pDocument;
}
#endif

⌨️ 快捷键说明

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