tabwndview.cpp

来自「初学者可以了解VC++界面参考代码 掌握别人的方法」· C++ 代码 · 共 74 行

CPP
74
字号
// TabWndView.cpp : implementation of the CTabWndView class
//

#include "stdafx.h"
#include "TabWnd.h"

#include "TabWndDoc.h"
#include "TabWndView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTabWndView

IMPLEMENT_DYNCREATE(CTabWndView, CView)

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

/////////////////////////////////////////////////////////////////////////////
// CTabWndView construction/destruction

CTabWndView::CTabWndView()
{
}

CTabWndView::~CTabWndView()
{
}

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

/////////////////////////////////////////////////////////////////////////////
// CTabWndView drawing

void CTabWndView::OnDraw(CDC* pDC)
{
	CTabWndDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
}

/////////////////////////////////////////////////////////////////////////////
// CTabWndView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CTabWndView message handlers

⌨️ 快捷键说明

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