adaboostview.cpp

来自「adaboost code in matlab」· C++ 代码 · 共 105 行

CPP
105
字号
// AdaBoostView.cpp : implementation of the CAdaBoostView class
//

#include "stdafx.h"
#include "AdaBoost.h"

#include "AdaBoostDoc.h"
#include "AdaBoostView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAdaBoostView

IMPLEMENT_DYNCREATE(CAdaBoostView, CEditView)

BEGIN_MESSAGE_MAP(CAdaBoostView, CEditView)
	//{{AFX_MSG_MAP(CAdaBoostView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CEditView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CEditView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAdaBoostView construction/destruction

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

}

CAdaBoostView::~CAdaBoostView()
{
}

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

	return CEditView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CAdaBoostView drawing

void CAdaBoostView::OnDraw(CDC* pDC)
{
	CAdaBoostDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
}

/////////////////////////////////////////////////////////////////////////////
// CAdaBoostView printing

BOOL CAdaBoostView::OnPreparePrinting(CPrintInfo* pInfo)
{
	// default preparation
	return DoPreparePrinting(pInfo);
}

void CAdaBoostView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add extra initialization before printing
}

void CAdaBoostView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
	// TODO: add cleanup after printing
}

/////////////////////////////////////////////////////////////////////////////
// CAdaBoostView diagnostics

#ifdef _DEBUG
void CAdaBoostView::AssertValid() const
{
	CEditView::AssertValid();
}

void CAdaBoostView::Dump(CDumpContext& dc) const
{
	CEditView::Dump(dc);
}

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

/////////////////////////////////////////////////////////////////////////////
// CAdaBoostView message handlers

⌨️ 快捷键说明

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