www.pudn.com > AdaBoost_weaklearner_1.rar > AdaBoostView.cpp


// 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