资源简介
用VC++实现打开并显示bmp图片,大家可以利用这个程序打开图片。

代码片段和文件信息
// ex124.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “ex124.h“
#include “MainFrm.h“
#include “ex124Doc.h“
#include “ex124View.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEx124App
BEGIN_MESSAGE_MAP(CEx124App CWinApp)
//{{AFX_MSG_MAP(CEx124App)
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()
/////////////////////////////////////////////////////////////////////////////
// CEx124App construction
CEx124App::CEx124App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CEx124App object
CEx124App theApp;
/////////////////////////////////////////////////////////////////////////////
// CEx124App initialization
BOOL CEx124App::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(CEx124Doc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CEx124View));
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 2012-12-13 17:20 图像显示\
目录 0 2012-12-13 17:22 图像显示\ex124\
目录 0 2012-12-13 17:22 图像显示\ex124\Debug\
文件 118828 2012-12-13 17:22 图像显示\ex124\Debug\ex124.exe
文件 331668 2012-12-13 17:22 图像显示\ex124\Debug\ex124.ilk
文件 22889 2012-12-13 17:17 图像显示\ex124\Debug\ex124.obj
文件 5503936 2012-12-13 17:17 图像显示\ex124\Debug\ex124.pch
文件 435200 2012-12-13 17:22 图像显示\ex124\Debug\ex124.pdb
文件 7244 2012-12-13 17:17 图像显示\ex124\Debug\ex124.res
文件 14665 2012-12-13 17:17 图像显示\ex124\Debug\ex124Doc.obj
文件 29888 2012-12-13 17:22 图像显示\ex124\Debug\ex124View.obj
文件 19912 2012-12-13 17:17 图像显示\ex124\Debug\MainFrm.obj
文件 105651 2012-12-13 17:17 图像显示\ex124\Debug\StdAfx.obj
文件 214016 2012-12-13 17:22 图像显示\ex124\Debug\vc60.idb
文件 364544 2012-12-13 17:22 图像显示\ex124\Debug\vc60.pdb
文件 28388 2012-12-10 21:56 图像显示\ex124\ex124.aps
文件 2237 2012-12-13 17:04 图像显示\ex124\ex124.clw
文件 4191 2012-12-10 21:56 图像显示\ex124\ex124.cpp
文件 4534 2012-12-10 21:56 图像显示\ex124\ex124.dsp
文件 533 2012-12-10 21:56 图像显示\ex124\ex124.dsw
文件 1345 2012-12-10 21:56 图像显示\ex124\ex124.h
文件 74752 2012-12-13 17:22 图像显示\ex124\ex124.ncb
文件 53760 2012-12-13 17:22 图像显示\ex124\ex124.opt
文件 1119 2012-12-13 17:22 图像显示\ex124\ex124.plg
文件 10536 2012-12-10 21:56 图像显示\ex124\ex124.rc
文件 1722 2012-12-10 21:56 图像显示\ex124\ex124Doc.cpp
文件 1464 2012-12-10 21:56 图像显示\ex124\ex124Doc.h
文件 5160 2012-12-13 17:22 图像显示\ex124\ex124View.cpp
文件 1976 2012-12-13 17:17 图像显示\ex124\ex124View.h
文件 2506 2012-12-10 21:56 图像显示\ex124\MainFrm.cpp
文件 1581 2012-12-10 21:56 图像显示\ex124\MainFrm.h
............此处省略9个文件信息
相关资源
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC++实现CMD命令执行与获得返回信息
- VC++基于OpenGL模拟的一个3维空间模型
- 基于VC++的SolidWorks二次开发SolidWorks
- 派克变换VC++源码(附文档)
- VC++ 串口
- VC++ 大富翁4_大富翁游戏源码
- VC++ 摄像头视频采集与回放源程序
- 转 VC++ 实现电子邮件(Email)发送
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- VC++ 服务程序编写及安装与卸载
- VC++6.0番茄西红柿VAXvirsual assist X完美破
- 基于改进的fcm算法的图像分割vc++
- VC++6.0 绿色版,免安装,非常好用。
- Microsoft Visual C++ 2005 Redistributable Pack
- VC++MFC课程设计的学生成绩管理系统
- 大智慧365DLL插件设计
- VC++6.0汉化包
- VC++完整商业界面源码(再上传)
- VC++编程技术600个大型项目源码.rar
- VC++实现RSA加密算法
- VC++ 中国象棋经典游戏源代码
- 郁金香VC++游戏辅助视频教程
- C语言进阶源码---基于graphics实现图书
- 摄影测量相对定向VC++程序
- VC++数字图像处理典型算法及实现
- VC++酒店客房管理系统 MFC
- 车站计算机联锁vc++6.0程序代码
评论
共有 条评论