后如何立即重新加载文件夹图标

后如何立即重新加载文件夹图标

本文介绍了更改 desktop.ini 后如何立即重新加载文件夹图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用更改文件夹上的 desktop.ini 以编程方式更改文件夹图标.我能够设置一个图标,但无法通过更改IconIndex"立即更改它.几秒钟后,图标也发生了变化.

I've been trying to change folder icon programmatically using changing desktop.ini on the folder. I was able to set an icon, but couldn't change it immediately through changing "IconIndex". The icon was also changed in a few seconds later.

有没有人知道如何立即更改图标?

Is there anybody know how to change the icon immediately?

推荐答案

我之前已经通过评论回复我的问题来回答了.为方便起见,我再写一个答案.

I already answered by commenting a reply at my question before. For more convenience, I will write an answer again.

如果您想使用 Desktop.ini 对任何文件夹的外观进行任何更改,请使用一些 win32 shell 函数.您不应尝试直接编辑 Desktop.ini.它不会对任何文件夹的外观进行任何更改.

If you want to make any change at an appearance of any folder using Desktop.ini, use some of win32 shell functions. You shouldn't try to edit a Desktop.ini directly. It doesn't get to make any change at an appearance of any folder.

您可以通过以下链接获得更多关于 win32 shell 函数的信息.

You could get more information of win32 shell functions through the following link.

http://msdn.microsoft.com/en-us/library/windows/desktop/bb776426(v=vs.85).aspx

这篇关于更改 desktop.ini 后如何立即重新加载文件夹图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 01:39