Questions tagged [shell-icons]
20 questions
52
votes
10 answers
Get File Icon used by Shell
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…

Joel Coehoorn
- 399,467
- 113
- 570
- 794
10
votes
2 answers
Windows icon overlays - alternatives, improvements and thoughts?
As Cody Gray mentioned when answering my other question here, Raymond Chen talks about how icon overlays are a poor choice here (note that the article is a year old).
The substantive argument against overlays is that only one can be shown at a…

rbellamy
- 5,683
- 6
- 38
- 48
6
votes
1 answer
How to resize Windows Icon Overlay?
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)

iuwei
- 317
- 1
- 3
- 13
6
votes
2 answers
How to get the linux folder and file icons and names in java?
I'm creating a tree of folders and files in java. Windows and OSX return the system icons and name with the following code:
new JFileChooser().getIcon(File f);
new JFileChooser().getName(File f);
Is there any possibility to get the icons and name…

André
- 2,313
- 2
- 25
- 29
5
votes
3 answers
Make Windows refresh icon cache
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…

Sudarshan S
- 1,235
- 2
- 16
- 25
4
votes
2 answers
How to perform "shell" icon embedding in Visual Studio 2010?
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…

JustABill
- 1,562
- 15
- 20
4
votes
3 answers
Extract a correct 16x16 icon assigned to a file?
I tied SHGetFileInfo and ExtractIconEx, both return a normal 32x32 icon and 16x16 with only 16 colors, and it looks awful. How do I extract a full color icon?
My code
SHFILEINFO shinfo = new SHFILEINFO();
IntPtr hImgSmall = SHGetFileInfo(fileName,…

alx
- 57
- 1
- 5
3
votes
1 answer
Display icon overlay without restart explorer
Please help me how can I display the icon overlays without restarting the explorer.exe?
The problem Im in stuck here is the fact that I must always close the explorer.exe in taskbarmanager and re-open it. I want the way no need to restart shell like…

Sean
- 51
- 3
3
votes
1 answer
How to get a folder's open icon with SHGetFileInfo() method?
This is what I did:
LPMALLOC malloc;
LPITEMIDLIST pidl;
SHFILEINFO FileInfo;
SFGAOF sfGao;
if (SUCCEEDED(SHGetMalloc(&malloc))
{
if (SUCCEEDED(SHParseDisplayName(strDirPath, NULL, &pidl, SFGAO_FOLDER, &sfGao)))
{
…

quantity
- 4,051
- 3
- 23
- 20
2
votes
2 answers
Making win32com overlay icons example work
I'm trying to make something similar as dropbox folder synchronization and I'm having problems with adding overlay icons. I checked the following…

MaReX
- 21
- 3
1
vote
0 answers
Is there any way to make changes to the icon overlay registry work without restarting explorer?
I am looking for a way to make changes to the icon-overlay work without restarting pc or restarting the explorer.
It would be very kind, if anyone can offer some help or idea.

muraad malik
- 93
- 6
1
vote
0 answers
Shell Icon Overlay Identifiers missing although 15-slot limit hasn't been reached
I've recently noticed that my OneDrive for Business icons (sync/out of sync/currently syncing) are missing. I've researched the issue and found out that for a lot of users the issue can be fixed if they ensure that they stay below the 15-slot limit…

Aileen Marshall
- 11
- 1
1
vote
1 answer
get file icon for Outlook appointment (.msg)
I've read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great.
However, Outlook uses ".msg" for mail and appointment items (if you drag an…

jean
- 1,027
- 1
- 8
- 15
1
vote
2 answers
Get Shell Icon with only a file extension
I want to get the windows system icon(s) for a file type without necessarily providing an existing file path (required by SHGetFileInfo)
Is this possible, or do I have to resort to creating temporary files or reading the registry?

Brandon Cuff
- 1,438
- 9
- 24
0
votes
1 answer
How to repair bazaar popup menu icons?
I recently upgraded bazaar from 2.5.x beta to official 2.5.0, but now the icons of the TortoizeBzr popup menu are not visible.
I tried to :
uninstall / reinstall v2.5.0
uninstall, reinstall a old version (v2.5.x beta)
pray for my icons back…

TridenT
- 4,879
- 1
- 32
- 56