• 大小: 13.33MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-02
  • 语言: C/C++
  • 标签: VS2008  MFc  

资源简介

在MFC对话框上的picturecontrol控件上,用鼠标绘图,按输入键开始绘图,按保存键,将picture控件所画图片保存为位图或jpg等格式

资源截图

代码片段和文件信息

// HandWritenDigitalRecongnition_Demo.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “HandWritenDigitalRecongnition_Demo.h“
#include “HandWritenDigitalRecongnition_DemoDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CHandWritenDigitalRecongnition_DemoApp

BEGIN_MESSAGE_MAP(CHandWritenDigitalRecongnition_DemoApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CHandWritenDigitalRecongnition_DemoApp construction

CHandWritenDigitalRecongnition_DemoApp::CHandWritenDigitalRecongnition_DemoApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}


// The one and only CHandWritenDigitalRecongnition_DemoApp object

CHandWritenDigitalRecongnition_DemoApp theApp;


// CHandWritenDigitalRecongnition_DemoApp initialization

BOOL CHandWritenDigitalRecongnition_DemoApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles.  Otherwise any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();

AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));

CHandWritenDigitalRecongnition_DemoDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-09-14 14:39  VS2008_Dialog_PictureControl_DrawAndSave\
     目录           0  2012-09-14 14:33  VS2008_Dialog_PictureControl_DrawAndSave\Debug\
     文件      149504  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\Debug\HandWritenDigitalRecongnition_Demo.exe
     文件     1295904  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\Debug\HandWritenDigitalRecongnition_Demo.ilk
     文件     3935232  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\Debug\HandWritenDigitalRecongnition_Demo.pdb
     目录           0  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\
     文件    13741056  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo.ncb
     文件         968  2012-09-11 18:47  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo.sln
     文件       40960  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo.suo
     文件      135486  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\1.bmp
     文件        2770  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\2.jpg
     文件           1  2006-11-20 00:11  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\ClassDiagram1.cd
     目录           0  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\
     文件       10080  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\BuildLog.htm
     文件        1196  2012-09-14 14:33  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\HandWritenDigitalRecongnition_Demo.exe.embed.manifest
     文件        1260  2012-09-14 14:33  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\HandWritenDigitalRecongnition_Demo.exe.embed.manifest.res
     文件        1120  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\HandWritenDigitalRecongnition_Demo.exe.intermediate.manifest
     文件       22650  2012-09-14 14:33  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\HandWritenDigitalRecongnition_Demo.obj
     文件    25034752  2012-09-14 14:33  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\HandWritenDigitalRecongnition_Demo.pch
     文件       23944  2012-09-14 14:33  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\HandWritenDigitalRecongnition_Demo.res
     文件      160694  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\HandWritenDigitalRecongnition_DemoDlg.obj
     文件          69  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\mt.dep
     文件      466926  2012-09-14 14:33  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\stdafx.obj
     文件     1117184  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\vc90.idb
     文件     2199552  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\Debug\vc90.pdb
     文件       60308  2012-09-14 14:31  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\HandWritenDigitalRecongnition_Demo.aps
     文件        2448  2012-09-11 18:47  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\HandWritenDigitalRecongnition_Demo.cpp
     文件         672  2012-09-11 18:47  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\HandWritenDigitalRecongnition_Demo.h
     文件        6201  2012-09-14 14:31  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\HandWritenDigitalRecongnition_Demo.rc
     文件        6445  2012-09-14 14:29  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\HandWritenDigitalRecongnition_Demo.vcproj
     文件        1427  2012-09-14 14:43  VS2008_Dialog_PictureControl_DrawAndSave\HandWritenDigitalRecongnition_Demo\HandWritenDigitalRecongnition_Demo.vcproj.XP-200902120857.Administrator.user
............此处省略10个文件信息

评论

共有 条评论