资源简介

本程序是一款基于VS2008开发的MFC垃圾文件清理器,可以清理垃圾文件和临时文件。供VC++或MFC学习的人员参考学习,希望对大家有所帮助! V2.0更新: 1.修复了多处bug,提高运行效率。 2.美化了程序界面,更换了程序logo以及图标。 3.增加扫描图标的显示。

资源截图

代码片段和文件信息

// ClearTmpFile.cpp : 定义应用程序的类行为。
//

#include “stdafx.h“
#include “ClearTmpFile.h“
#include “ClearTmpFileDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CClearTmpFileApp

BEGIN_MESSAGE_MAP(CClearTmpFileApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CClearTmpFileApp 构造

CClearTmpFileApp::CClearTmpFileApp()
{
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}


// 唯一的一个 CClearTmpFileApp 对象

CClearTmpFileApp theApp;


// CClearTmpFileApp 初始化

BOOL CClearTmpFileApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 将它设置为包括所有要在应用程序中使用的
// 公共控件类。
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();

AfxEnableControlContainer();

// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名
SetRegistryKey(_T(“应用程序向导生成的本地应用程序“));

CClearTmpFileDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此放置处理何时用
//  “确定”来关闭对话框的代码
}
else if (nResponse == IDCANCEL)
{
// TODO: 在此放置处理何时用
//  “取消”来关闭对话框的代码
}

// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
//  而不是启动应用程序的消息泵。
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-15 21:54  ClearTmpFile\
     目录           0  2013-01-15 21:54  ClearTmpFile\ClearTmpFile\
     文件    23890944  2013-01-15 20:50  ClearTmpFile\ClearTmpFile.ncb
     文件        1355  2013-01-15 13:27  ClearTmpFile\ClearTmpFile.sln
     文件       73728  2013-01-15 20:50  ClearTmpFile\ClearTmpFile.suo
     文件       67700  2013-01-15 20:42  ClearTmpFile\ClearTmpFile\ClearTmpFile.aps
     文件        1725  2013-01-14 12:54  ClearTmpFile\ClearTmpFile\ClearTmpFile.cpp
     文件         477  2013-01-11 14:44  ClearTmpFile\ClearTmpFile\ClearTmpFile.h
     文件        6736  2013-01-15 20:42  ClearTmpFile\ClearTmpFile\ClearTmpFile.rc
     文件        6062  2013-01-15 20:48  ClearTmpFile\ClearTmpFile\ClearTmpFile.vcproj
     文件        1423  2013-01-15 20:50  ClearTmpFile\ClearTmpFile\ClearTmpFile.vcproj.caizhiming-PC.caizhiming.user
     文件       36006  2013-01-15 20:07  ClearTmpFile\ClearTmpFile\ClearTmpFileDlg.cpp
     文件        2301  2013-01-15 16:36  ClearTmpFile\ClearTmpFile\ClearTmpFileDlg.h
     文件        1161  2013-01-14 11:02  ClearTmpFile\ClearTmpFile\HSListBox.cpp
     文件         674  2013-01-13 22:30  ClearTmpFile\ClearTmpFile\HSListBox.h
     目录           0  2013-01-15 21:54  ClearTmpFile\ClearTmpFile\images\
     文件        1784  2013-01-15 20:42  ClearTmpFile\ClearTmpFile\images\bmp1.bmp
     文件        1784  2013-01-15 20:42  ClearTmpFile\ClearTmpFile\images\bmp2.bmp
     文件        1784  2013-01-15 20:42  ClearTmpFile\ClearTmpFile\images\bmp3.bmp
     文件        1784  2013-01-15 20:42  ClearTmpFile\ClearTmpFile\images\bmp4.bmp
     文件        1784  2013-01-15 20:42  ClearTmpFile\ClearTmpFile\images\bmp5.bmp
     文件        1782  2013-01-15 20:42  ClearTmpFile\ClearTmpFile\images\bmp6.bmp
     文件        2981  2013-01-11 14:44  ClearTmpFile\ClearTmpFile\ReadMe.txt
     目录           0  2013-01-15 21:54  ClearTmpFile\ClearTmpFile\res\
     文件        1552  2013-01-15 20:42  ClearTmpFile\ClearTmpFile\resource.h
     文件       16958  2013-01-15 20:02  ClearTmpFile\ClearTmpFile\res\ClearTmpFile.ico
     文件         368  2013-01-11 14:44  ClearTmpFile\ClearTmpFile\res\ClearTmpFile.rc2
     文件       21630  2013-01-15 20:08  ClearTmpFile\ClearTmpFile\res\ClearTmpFile2.ico
     文件        1078  2006-07-22 10:17  ClearTmpFile\ClearTmpFile\res\icon1.ico
     文件         143  2013-01-11 14:44  ClearTmpFile\ClearTmpFile\stdafx.cpp
     文件        1800  2013-01-12 14:49  ClearTmpFile\ClearTmpFile\stdafx.h
............此处省略1个文件信息

评论

共有 条评论