資源簡介
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個文件信息
評論
共有 條評論