资源简介
1,实现了类似于windows资源管理器的基本功能
2,能够将程序添加到注册表里,默认关联文件格式为.test
3,自动更改.test文件图标
代码片段和文件信息
// MyExplorer.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “MyHeader.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyExplorerApp
BEGIN_MESSAGE_MAP(CMyExplorerApp CWinApp)
//{{AFX_MSG_MAP(CMyExplorerApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyExplorerApp construction
CMyExplorerApp::CMyExplorerApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMyExplorerApp object
CMyExplorerApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMyExplorerApp initialization
BOOL CMyExplorerApp::InitInstance()
{
AfxEnableControlContainer();
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
//获取命令行传过来的参数:双击打开的文件的文件路径名称
CString strFilePathName = cmdInfo.m_strFileName;
AfxMessageBox(strFilePathName);
// 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
CMyExplorerDlg dlg;
m_pMainWnd = &dlg;
int 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 2013-04-14 12:32 MyExplorer 文件关联程序和图标\
目录 0 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\
文件 3163136 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorer.bsc
文件 733277 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorer.exe
文件 352008 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorer.ilk
文件 16172 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorer.obj
文件 6878572 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorer.pch
文件 369664 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorer.pdb
文件 488980 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorer.res
文件 0 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorer.sbr
文件 74529 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorerDlg.obj
文件 0 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyExplorerDlg.sbr
文件 50920 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyListCtrl.obj
文件 0 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyListCtrl.sbr
文件 39929 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyTreeCtrl.obj
文件 0 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\MyTreeCtrl.sbr
文件 105860 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\StdAfx.obj
文件 1375037 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\StdAfx.sbr
文件 12708 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\SystemImageList.obj
文件 0 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\SystemImageList.sbr
文件 214016 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\vc60.idb
文件 364544 2013-04-14 12:30 MyExplorer 文件关联程序和图标\Debug\vc60.pdb
文件 482712 2013-04-11 21:37 MyExplorer 文件关联程序和图标\MyExplorer.aps
文件 2294 2013-04-14 12:32 MyExplorer 文件关联程序和图标\MyExplorer.clw
文件 2297 2013-04-11 15:18 MyExplorer 文件关联程序和图标\MyExplorer.cpp
文件 5040 2013-04-11 15:23 MyExplorer 文件关联程序和图标\MyExplorer.dsp
文件 543 2012-12-10 16:24 MyExplorer 文件关联程序和图标\MyExplorer.dsw
文件 1394 2012-12-12 20:55 MyExplorer 文件关联程序和图标\MyExplorer.h
文件 173056 2013-04-14 12:32 MyExplorer 文件关联程序和图标\MyExplorer.ncb
文件 54784 2013-04-14 12:32 MyExplorer 文件关联程序和图标\MyExplorer.opt
文件 254 2013-04-14 12:30 MyExplorer 文件关联程序和图标\MyExplorer.plg
............此处省略28个文件信息
相关资源
- Windows异步套接字网络编程
- VC 获得文件属性 获取文件的创建时
- 基于MVC模式的会员管理系统
- silicon lab公司的收音IC SI47XX全套开发工
- 读者写者问题(读者优先,写者优先
- MFC程序-碰撞的小球
- vc 柱形图 CBarChart
- 用vc 写的导线测量,针对刚学测绘的
- 用VC 编写的仿QQ聊天室程序源代码
- 栅栏填充算法源码(VC)
- 简单的房屋租赁系统
- .net网站服装销售系统(MVC)
-
ob
jectARX给Auto CAD加工具条 - blowfish的vc2008工程.rar
- 画图程序MFC/VC/VC CRectTracker 串行化
- capon波束形成算法-VC实现
- 读取串口数据并画实时曲线的VC 程序
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- keil vcom windows 7 64bit 驱动
- vc URL编解码类
- vc编写中国象棋详细源码注释并附有视
- VC 围棋源代码
- 用VC 编写的基于SNMP的路由器拓扑程序
- vc利用MFC底层开发的二维GIS管理软件,
- 兰勃托地图投影VC源码
- 清华大学郑莉C 语言程序设计课件
川公网安备 51152502000135号
评论
共有 条评论