资源简介
基于c++,利用MFC实现bmp图像一系列处理
代码片段和文件信息
// bmp.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “bmp.h“
#include “MainFrm.h“
#include “bmpDoc.h“
#include “bmpView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CbmpApp
BEGIN_MESSAGE_MAP(CbmpApp CWinApp)
ON_COMMAND(ID_APP_ABOUT &CbmpApp::OnAppAbout)
// 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()
// CbmpApp construction
CbmpApp::CbmpApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
// The one and only CbmpApp object
CbmpApp theApp;
// CbmpApp initialization
BOOL CbmpApp::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();
// Initialize OLE libraries
if (!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return FALSE;
}
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“));
LoadStdProfileSettings(4); // 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(CbmpDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CbmpView));
if (!pDocTemplate)
return FALSE;
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line. Will return FALSE if
// app was launched with /RegServer /Register /Unregserver or /Unregister.
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();
// call DragAcceptFiles only if there‘s 属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 55240 2014-05-06 18:42 实验5\bmp.aps
文件 3758 2014-04-17 21:34 实验5\bmp.cpp
文件 508 2014-04-17 21:34 实验5\bmp.h
文件 12749824 2014-05-08 18:39 实验5\bmp.ncb
文件 14370 2014-05-06 00:20 实验5\bmp.rc
文件 871 2014-04-17 21:34 实验5\bmp.sln
..A..H. 33280 2014-05-08 18:39 实验5\bmp.suo
文件 6355 2014-05-05 23:49 实验5\bmp.vcproj
文件 1427 2014-05-06 18:55 实验5\bmp.vcproj.DNISO-20140118I.Administrator.user
文件 1407 2014-05-08 18:39 实验5\bmp.vcproj.zh-PC.zh.user
文件 3607 2014-04-15 10:26 实验5\bmpDoc.cpp
文件 1390 2014-05-05 23:38 实验5\bmpDoc.h
文件 7124 2014-05-06 00:18 实验5\bmpView.cpp
文件 1079 2014-05-05 22:49 实验5\bmpView.h
文件 13803 2014-03-18 15:20 实验5\Dib.cpp
文件 2252 2005-05-10 21:17 实验5\Dib.h
文件 28388 2014-04-22 14:44 实验5\DIBAPI.CPP
文件 1806 2014-04-22 14:44 实验5\DIBAPI.H
文件 3101 2014-04-17 23:13 实验5\DlgHistogram.cpp
文件 761 2014-04-17 23:13 实验5\DlgHistogram.h
文件 8797 2014-05-05 23:13 实验5\DlgLinerPara.cpp
文件 1090 2014-05-05 23:13 实验5\DlgLinerPara.h
文件 1561 2014-04-22 15:23 实验5\Line Trans.cpp
文件 87 2014-04-22 14:48 实验5\Line Trans.h
文件 1950 2014-04-17 21:34 实验5\MainFrm.cpp
文件 739 2014-04-17 21:34 实验5\MainFrm.h
文件 4942 2014-04-17 21:34 实验5\ReadMe.txt
文件 1228 2014-05-05 23:13 实验5\resource.h
文件 203 2014-04-17 21:34 实验5\stdafx.cpp
文件 1956 2014-04-17 21:34 实验5\stdafx.h
............此处省略32个文件信息
- 上一篇:网络入侵检测系统C++
- 下一篇:百度地图二次开发汇总
相关资源
- 基于MFC的TCP调试助手源码95706
- 基于mfc的多线程文件传输
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- 二维码生成BMP
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- MFC五子棋游戏
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
- 一个简单而强大的基于MFC的web server源
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- MFCaccess.rar
- VC++MFC课程设计的学生成绩管理系统
- MFC 日历控件 万年历 Calendar自绘
- CrystalDiskInfo-HDD/SSD硬盘信息,SMART信息
- MFC自定义界面HUI,高效简单,含详细
- 仿射密码-Affine cipher
- c++MFC车牌自动识别定位,只能定位和
- mfc+sql 酒店客房管理系统
- 基于图割的图像分割OpenCV+MFC实现
川公网安备 51152502000135号
评论
共有 条评论