shell-icons

Make Windows refresh icon cache

南笙酒味 提交于 2019-12-18 13:37:30
问题 I really liked the oxygen appearance of KDE SC 4. I wrote a program to apply these icons to windows. The program is written in NSIS, and is currently nearly fully functional. However, the only way I found to make Windows aware of the icon changes is to kill explorer.exe, delete the icon cache, and respawn explorer.exe. SHChangeNotify with SHCNE_ASSOCCHANGED seems to be unable to make Windows aware of the changes to the Control Panel icon, the My Computer icon, etc. Please suggest a better,

How to resize Windows Icon Overlay?

蓝咒 提交于 2019-11-30 20:36:31
I made a icon overlay to my file, *.myfile , but the overlay size is wrong. When the icon shows in size 16x16, the overlay covers the icon. How can I change the overlay size? ( IShellIconOverlayIdentifier ) You can't change the overlay size. Instead use a multi-resolution icon file where all necessary sizes are available. For a good example take a look into the source of TortoiseSVN . Their will be only one icon file used, but if you open it with an appropiate paint tool, you'll see that this file contains different sizes. Update If you take a look right at the first method, you'll get the

Make Windows refresh icon cache

风流意气都作罢 提交于 2019-11-30 09:56:05
I really liked the oxygen appearance of KDE SC 4. I wrote a program to apply these icons to windows. The program is written in NSIS, and is currently nearly fully functional. However, the only way I found to make Windows aware of the icon changes is to kill explorer.exe, delete the icon cache, and respawn explorer.exe. SHChangeNotify with SHCNE_ASSOCCHANGED seems to be unable to make Windows aware of the changes to the Control Panel icon, the My Computer icon, etc. Please suggest a better, less brutal approach to make Windows aware of these changes. EDIT: I found a program called Icon Tweaker

How to resize Windows Icon Overlay?

偶尔善良 提交于 2019-11-30 04:44:11
问题 I made a icon overlay to my file, *.myfile , but the overlay size is wrong. When the icon shows in size 16x16, the overlay covers the icon. How can I change the overlay size? ( IShellIconOverlayIdentifier ) 回答1: You can't change the overlay size. Instead use a multi-resolution icon file where all necessary sizes are available. For a good example take a look into the source of TortoiseSVN. Their will be only one icon file used, but if you open it with an appropiate paint tool, you'll see that

How to perform “shell” icon embedding in Visual Studio 2010?

梦想的初衷 提交于 2019-11-27 15:51:35
As far as I can tell, there have been (at least?) three types of icon embedding. There's the original style used by shell32.dll and friends, .NET's embedding, and the new type that WPF uses. I'm looking for how to perform the first one, as I want to have a few other icons available as resources for a jumplist, which can only accept that style. However, I can't figure out how to embed in this style, only the other two. How do I do this? All the results I find on google, etc are for adding icons to ResX files or similar. I never heard the term "icon embedding" before. If you are talking about

How to perform “shell” icon embedding in Visual Studio 2010?

旧时模样 提交于 2019-11-26 17:20:36
问题 As far as I can tell, there have been (at least?) three types of icon embedding. There's the original style used by shell32.dll and friends, .NET's embedding, and the new type that WPF uses. I'm looking for how to perform the first one, as I want to have a few other icons available as resources for a jumplist, which can only accept that style. However, I can't figure out how to embed in this style, only the other two. How do I do this? All the results I find on google, etc are for adding

Get File Icon used by Shell

China☆狼群 提交于 2019-11-26 13:04:18
In .Net (C# or VB: don't care), given a file path string, FileInfo struct, or FileSystemInfo struct for a real existing file, how can I determine the icon(s) used by the shell (explorer) for that file? I'm not currently planning to use this for anything, but I became curious about how to do it when looking at this question and I thought it would be useful to have archived here on SO. Stefan Imports System.Drawing Module Module1 Sub Main() Dim filePath As String = "C:\myfile.exe" Dim TheIcon As Icon = IconFromFilePath(filePath) If TheIcon IsNot Nothing Then ''#Save it to disk, or do whatever

Get File Icon used by Shell

落花浮王杯 提交于 2019-11-26 03:54:35
问题 In .Net (C# or VB: don\'t care), given a file path string, FileInfo struct, or FileSystemInfo struct for a real existing file, how can I determine the icon(s) used by the shell (explorer) for that file? I\'m not currently planning to use this for anything, but I became curious about how to do it when looking at this question and I thought it would be useful to have archived here on SO. 回答1: Imports System.Drawing Module Module1 Sub Main() Dim filePath As String = "C:\myfile.exe" Dim TheIcon