Tuesday, January 5, 2016

ContextIcons: Set icons for standard Windows context menu entries

Yesterday, I answered a Super User question that asked how to add icons next to "Copy", "Paste", and other standard Windows Explorer context menu items. I solved it by creating a shell extension that looks through the existing items and injects icons into the appropriate ones.

I was asked to put it on GitHub, and since I was publishing the source anyway, I thought that was a pretty good idea. So I did: it's called ContextIcons. The interesting stuff is in IconInjector.cpp. Building it is pretty easy; just open the SLN file in Visual Studio 2015 after installing the C++ tools and do Build | Build Solution.

No comments:

Post a Comment