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

📄 treebugview.cpp

📁 讲mfc的书
💻 CPP
字号:
// treebugView.cpp : implementation of the CTreebugView class
//

#include "stdafx.h"
#include "treebug.h"

#include "treebugDoc.h"
#include "treebugView.h"
#include "baddlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTreebugView

IMPLEMENT_DYNCREATE(CTreebugView, CView)

BEGIN_MESSAGE_MAP(CTreebugView, CView)
	//{{AFX_MSG_MAP(CTreebugView)
	ON_COMMAND(ID_GO, OnGo)
	ON_COMMAND(ID_FIX, OnFix)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTreebugView construction/destruction

CTreebugView::CTreebugView()
{
	// TODO: add construction code here

}

CTreebugView::~CTreebugView()
{
}

BOOL CTreebugView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CTreebugView drawing

void CTreebugView::OnDraw(CDC* pDC)
{
	CTreebugDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CTreebugView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CTreebugView message handlers

void CTreebugView::OnGo() 
{
   CBadDlg dlg;
   dlg.Fix=FALSE;
   dlg.DoModal();
}

void CTreebugView::OnFix() 
{
   CBadDlg dlg;
   dlg.Fix=TRUE;
   dlg.DoModal();
}

⌨️ 快捷键说明

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