put icon Context Menu on File selection
-
How to add an icon to right click menu when selecting a file or folder. Installer is going to do this kind of stuff or I can just set it up in registry? I already defined Directory/Shell/MyApp/Command to add context menu but i don't know how to add icon. Shin
-
How to add an icon to right click menu when selecting a file or folder. Installer is going to do this kind of stuff or I can just set it up in registry? I already defined Directory/Shell/MyApp/Command to add context menu but i don't know how to add icon. Shin
-
Hi I have problem the same as you. But I want to know which items You put these keys(HKEY_ CLASSES_ROOT or HKEY_LOCAL_MACHINE)??? Thanks tramdtt
HKEY_CLASSES_ROOT
-
HKEY_CLASSES_ROOT
-
tramdtt you are successfull with diplaying icons or just menu without icons. Can you put what did you put in the registry. I am still having problem with displaying icon Shin
-
Hi, Shinay I have still problem with icon of menu item and I have not solved it!!! Who can help me??? tramdtt
"Static" menu extensions like you are adding through the registry (under the "shell") subkey don't allow icons. At all. If you want to add a menu item with an icon, you need to write a COM shell extension (context menu handler) which implements IContextMenu. Then you can add items to the supplied HMENU. You can use SetMenuItemBitmaps() to add an icon, but it won't be pretty [like the winzip ones]. If you want a really nice full-colour icon you have to implement IContextMenu2 in your shell extension, add an owner-draw item and draw it yourself. Hope this helps grigri