資源簡介
實現了提高要求
清除歷史記錄,收藏夾功能,清除密碼,清空臨時目錄
《南郵通達 軟件設計》
設計一個簡單的瀏覽器。
基本要求:
在菜單項或工具條實現打開一個新的網頁指定的功能。
提高要求:在菜單項或工具條實現下述功能之一:
清除自動密碼歷史記錄。
瀏覽器地址欄歷史地址的清除。
清空臨時目錄。

代碼片段和文件信息
//?09003711D.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“09003711D.h“
#include?“MainFrm.h“
#include?“09003711DDoc.h“
#include?“09003711DView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy09003711DApp
BEGIN_MESSAGE_MAP(CMy09003711DApp?CWinApp)
//{{AFX_MSG_MAP(CMy09003711DApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CMy09003711DApp?construction
CMy09003711DApp::CMy09003711DApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy09003711DApp?object
CMy09003711DApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy09003711DApp?initialization
BOOL?CMy09003711DApp::InitInstance()
{
/*if?(!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_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.
#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(0);??//?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(CMy09003711DDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CMy09003711DView));
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))
re
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????31416??2012-06-21?10:04??瀏覽器的實現\09003711D.APS
?????文件???????2288??2012-06-21?15:40??瀏覽器的實現\09003711D.clw
?????文件???????4390??2012-06-16?21:51??瀏覽器的實現\09003711D.cpp
?????文件???????4735??2012-06-16?21:56??瀏覽器的實現\09003711D.dsp
?????文件???????1399??2012-06-16?21:31??瀏覽器的實現\09003711D.h
?????文件??????50176??2012-07-12?16:35??瀏覽器的實現\09003711D.ncb
?????文件??????53760??2012-07-12?16:35??瀏覽器的實現\09003711D.opt
?????文件???????1988??2012-07-12?16:35??瀏覽器的實現\09003711D.plg
?????文件??????11617??2012-06-16?21:54??瀏覽器的實現\09003711D.rc
?????文件???????1834??2012-06-16?21:51??瀏覽器的實現\09003711DDoc.cpp
?????文件???????1522??2012-06-16?21:51??瀏覽器的實現\09003711DDoc.h
?????文件???????8232??2012-06-21?10:15??瀏覽器的實現\09003711DView.cpp
?????文件???????2733??2012-06-21?10:14??瀏覽器的實現\09003711DView.h
?????文件?????139333??2012-07-12?16:35??瀏覽器的實現\Debug\09003711D.exe
?????文件?????431672??2012-07-12?16:35??瀏覽器的實現\Debug\09003711D.ilk
?????文件??????25463??2012-07-12?16:35??瀏覽器的實現\Debug\09003711D.obj
?????文件????5586536??2012-07-12?16:35??瀏覽器的實現\Debug\09003711D.pch
?????文件?????386048??2012-07-12?16:35??瀏覽器的實現\Debug\09003711D.pdb
?????文件???????9692??2012-07-12?16:35??瀏覽器的實現\Debug\09003711D.res
?????文件??????14952??2012-07-12?16:35??瀏覽器的實現\Debug\09003711DDoc.obj
?????文件??????39289??2012-07-12?16:35??瀏覽器的實現\Debug\09003711DView.obj
?????文件??????45066??2012-07-12?16:35??瀏覽器的實現\Debug\MainFrm.obj
?????文件?????106544??2012-07-12?16:35??瀏覽器的實現\Debug\StdAfx.obj
?????文件?????222208??2012-07-12?16:35??瀏覽器的實現\Debug\vc60.idb
?????文件?????380928??2012-07-12?16:35??瀏覽器的實現\Debug\vc60.pdb
?????文件???????9833??2012-06-21?10:03??瀏覽器的實現\MainFrm.cpp
?????文件???????1998??2012-06-16?21:51??瀏覽器的實現\MainFrm.h
?????文件???????4079??2012-06-16?21:31??瀏覽器的實現\ReadMe.txt
?????文件???????1078??2012-06-16?21:31??瀏覽器的實現\res\09003711D.ico
?????文件????????401??2012-06-16?21:31??瀏覽器的實現\res\09003711D.rc2
............此處省略12個文件信息
- 上一篇:MFC UDP 聊天
- 下一篇:MFC 聊天室 高級
評論
共有 條評論