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

📄 show.cpp

📁 Handwritten digital recognition is made by matlab nerve network toolbox in visual c++.net
💻 CPP
字号:
// Show.cpp : implementation file
//

#include "stdafx.h"
#include "test.h"
#include "Show.h"
#include "Glob.h"
#include "TestDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CShow

IMPLEMENT_DYNCREATE(CShow, CView)

CShow::CShow()
{
}

CShow::~CShow()
{
}


BEGIN_MESSAGE_MAP(CShow, CView)
	//{{AFX_MSG_MAP(CShow)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CShow drawing

void CShow::OnDraw(CDC* pDC)
{
	CDocument* pDoc = GetDocument();
	// TODO: add draw code here
	CString str;
	if (shows) {


	str.Format("%d",data);
	pDC->TextOut(1,1,"识别数字:"+str);

}
}

/////////////////////////////////////////////////////////////////////////////
// CShow diagnostics

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

void CShow::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CShow message handlers

void CShow::OnInitialUpdate() 
{
	CView::OnInitialUpdate();
	
	// TODO: Add your specialized code here and/or call the base class
	CTestDoc *pDoc=(CTestDoc *)GetDocument();
	shows=0;
}

void CShow::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) 
{
	// TODO: Add your specialized code here and/or call the base class
		if (lHint==4)
	{
		Invalidate();
		shows=*((int*)pHint);
	}
	
}

⌨️ 快捷键说明

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