VS2013在Window下显示问题(解决MFC.exe桌面图标显示异常问题)
来源:互联网 发布:请叫我威廉三世知轩 编辑:程序博客网 时间:2024/06/05 03:08
一直纠结于为什么代码也修改了MFC原来的图片,为什么一直还是显示MFC图标,搜索了很久,偶然找到一个方法,使用WIN7时,MFC工程生成的应用程序图标,如果更改为自定义的ICON图标之后可能在桌面上显示的依旧是上一次的图标,改个名或换个路径都能恢复正常,说明在WIN7系统下图标的缓存没有刷新,只需要重建下图标缓存既可。
在项目下建一个txt文件添加代码
代码实现如下:
rem 关闭Windows explorertaskkill /f /im explorer.exerem 清理系统图标缓存数据库attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"del /f "%userprofile%\AppData\Local\IconCache.db"attrib /s /d -h -s -r "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*"del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_32.db"del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_96.db"del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_102.db"del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_256.db"del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_1024.db"del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db"del /f "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"rem 清理 系统托盘记忆的图标echo y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreamsecho y|reg delete "HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStreamrem 重启Windows外壳程序explorerstart explorer然后把txt文件后缀改为.bat,运行bat文件然后显示就正常了。
0 1
- VS2013在Window下显示问题(解决MFC.exe桌面图标显示异常问题)
- ubuntu桌面图标不显示问题
- 解决window下GVedit显示中文乱码的问题
- 解决svn造成桌面图标显示问号的问题
- 解决win10系统下软件图标显示异常的问题
- OpenCV在MFC框架下显示图片问题
- window 桌面图标不正常显示解决办法
- 彻底解决IE桌面图标无法显示的问题
- 解决mac tmux vim显示异常问题
- 解决mac tmux vim显示异常问题
- 解决JasperReport在Linux下无法显示的问题!
- 如何解决在PUTTY下Linux显示乱码的问题
- Qt5.7在AM3358下解决中文乱码显示问题
- windows桌面图标显示大小异常
- MFC显示问题
- win7桌面图标显示不正常解决
- 桌面图标 背景 阴影 问题 + 屏幕 显示 旋转 斜看 问题
- 解决桌面图标问题
- CSDN的第一篇博客
- 单例模式
- B - Ministry
- 记录FFmpeg的help文档中命令行参数。
- 1014. 福尔摩斯的约会
- VS2013在Window下显示问题(解决MFC.exe桌面图标显示异常问题)
- cf#334-C. Alternative Thinking-规律题
- 单点登录系统cas资料汇总
- 【HDU3068】最长回文【Manacher】
- 单点登录方案的比较和选择
- 【URAL1297】Palindrome【Manacher】
- LightOJ 1077 - How Many Points? (线段整数点个数)
- 解决中文文件名显示乱码的问题
- python乱码小记