gusucode.com > 一个相对很完善的数据挖掘系统源码程序 > 一个相对很完善的数据挖掘系统源码程序/Discover/DiscoverView.cpp

    // DiscoverView.cpp : implementation of the CDiscoverView class
//

#include "stdafx.h"
#include "Discover.h"
#include "MainFrm.h"
#include "DummyList.h"
#include "DiscoverDoc.h"
#include "DiscoverView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDiscoverView

IMPLEMENT_DYNCREATE(CDiscoverView, CView)

BEGIN_MESSAGE_MAP(CDiscoverView, CView)
	//{{AFX_MSG_MAP(CDiscoverView)
		// 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, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
	//ON_UPDATE_COMMAND_UI(ID_INDICATOR_RECORDCOUNT, OnUpdateIndicatorRECORDCOUNT)
 	//ON_UPDATE_COMMAND_UI(ID_INDICATOR_RECORDROWID, OnUpdateIndicatorRECORDROWID)

END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDiscoverView construction/destruction

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

}

CDiscoverView::~CDiscoverView()
{
}

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

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CDiscoverView drawing

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

/////////////////////////////////////////////////////////////////////////////
// CDiscoverView printing

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CDiscoverView diagnostics

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

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

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

/////////////////////////////////////////////////////////////////////////////
// CDiscoverView message handlers