数字图像处理- MFC教程
第一课 建立MFC和打开bmp图片
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-03-25 09:33 bmp1
目录 0 2013-03-25 09:28 bmp1Debug
文件 19823 2013-03-24 16:34 bmp1DebugMainFrm.obj
文件 105896 2013-03-24 16:34 bmp1DebugStdAfx.obj
文件 118852 2013-03-25 09:28 bmp1Debugmp1.exe
文件 330004 2013-03-25 09:28 bmp1Debugmp1.ilk
文件 22744 2013-03-25 09:27 bmp1Debugmp1.obj
文件 5637608 2013-03-24 16:34 bmp1Debugmp1.pch
文件 476160 2013-03-25 09:28 bmp1Debugmp1.pdb
文件 7228 2013-03-24 16:34 bmp1Debugmp1.res
文件 14524 2013-03-24 16:34 bmp1Debugmp1Doc.obj
文件 31497 2013-03-25 09:28 bmp1Debugmp1View.obj
文件 205824 2013-03-25 09:28 bmp1Debugvc60.idb
文件 364544 2013-03-25 09:28 bmp1Debugvc60.pdb
文件 2505 2013-03-24 16:24 bmp1MainFrm.cpp
文件 1581 2013-03-24 16:24 bmp1MainFrm.h
文件 4263 2013-03-24 16:24 bmp1ReadMe.txt
文件 490 2013-03-24 16:24 bmp1Resource.h
文件 206 2013-03-24 16:24 bmp1StdAfx.cpp
文件 1054 2013-03-24 16:24 bmp1StdAfx.h
文件 28556 2013-03-24 16:25 bmp1mp1.aps
文件 2245 2013-03-25 09:00 bmp1mp1.clw
文件 4173 2013-03-24 16:24 bmp1mp1.cpp
文件 4513 2013-03-24 16:24 bmp1mp1.dsp
文件 516 2013-03-24 16:24 bmp1mp1.dsw
文件 1334 2013-03-24 16:24 bmp1mp1.h
文件 58368 2013-03-25 09:33 bmp1mp1.ncb
文件 48640 2013-03-25 09:33 bmp1mp1.opt
文件 1128 2013-03-25 09:28 bmp1mp1.plg
文件 10519 2013-03-24 16:24 bmp1mp1.rc
文件 1702 2013-03-24 16:24 bmp1mp1Doc.cpp
............此处省略8个文件信息
// bmp1.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “bmp1.h“
#include “MainFrm.h“
#include “bmp1Doc.h“
#include “bmp1View.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBmp1App
BEGIN_MESSAGE_MAP(CBmp1App CWinApp)
//{{AFX_MSG_MAP(CBmp1App)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// 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 file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBmp1App construction
CBmp1App::CBmp1App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CBmp1App object
CBmp1App theApp;
/////////////////////////////////////////////////////////////////////////////
// CBmp1App initialization
BOOL CBmp1App::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.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// 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“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CBmp1Doc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CBmp1View));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
}
/////////////////////////
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-03-25 09:33 bmp1
目录 0 2013-03-25 09:28 bmp1Debug
文件 19823 2013-03-24 16:34 bmp1DebugMainFrm.obj
文件 105896 2013-03-24 16:34 bmp1DebugStdAfx.obj
文件 118852 2013-03-25 09:28 bmp1Debugmp1.exe
文件 330004 2013-03-25 09:28 bmp1Debugmp1.ilk
文件 22744 2013-03-25 09:27 bmp1Debugmp1.obj
文件 5637608 2013-03-24 16:34 bmp1Debugmp1.pch
文件 476160 2013-03-25 09:28 bmp1Debugmp1.pdb
文件 7228 2013-03-24 16:34 bmp1Debugmp1.res
文件 14524 2013-03-24 16:34 bmp1Debugmp1Doc.obj
文件 31497 2013-03-25 09:28 bmp1Debugmp1View.obj
文件 205824 2013-03-25 09:28 bmp1Debugvc60.idb
文件 364544 2013-03-25 09:28 bmp1Debugvc60.pdb
文件 2505 2013-03-24 16:24 bmp1MainFrm.cpp
文件 1581 2013-03-24 16:24 bmp1MainFrm.h
文件 4263 2013-03-24 16:24 bmp1ReadMe.txt
文件 490 2013-03-24 16:24 bmp1Resource.h
文件 206 2013-03-24 16:24 bmp1StdAfx.cpp
文件 1054 2013-03-24 16:24 bmp1StdAfx.h
文件 28556 2013-03-24 16:25 bmp1mp1.aps
文件 2245 2013-03-25 09:00 bmp1mp1.clw
文件 4173 2013-03-24 16:24 bmp1mp1.cpp
文件 4513 2013-03-24 16:24 bmp1mp1.dsp
文件 516 2013-03-24 16:24 bmp1mp1.dsw
文件 1334 2013-03-24 16:24 bmp1mp1.h
文件 58368 2013-03-25 09:33 bmp1mp1.ncb
文件 48640 2013-03-25 09:33 bmp1mp1.opt
文件 1128 2013-03-25 09:28 bmp1mp1.plg
文件 10519 2013-03-24 16:24 bmp1mp1.rc
文件 1702 2013-03-24 16:24 bmp1mp1Doc.cpp
............此处省略8个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)