how to add menu item with icon to ie?

L

long

does anybody know how google was able to add their menu to ie context
menu with ICONS? i can add my menu item using MenuExt in registry, but
it does not allow to add icon, may be anybody know how to do that?
 
R

Rob ^_^

Hi long,

Google and Yahoo toolbars are using a COM component that adds the Context
Menu sub-menus with their icons. Most probably they use the Menu API's in
the User API (CreateMenu, DrawIcon etc..) as you would when creating menus
dynamically in a C++ app. The APIs all use the hwnd of the menu item, so all
you need to find is the hwnd of the menu item in the context menu that you
want to add the icon for.
There is an excellent example of using the createPopup method to create your
own dynamic context menu in the MSDN library, but this is only for your own
web documents. Since Context menu's can be disabled
(body.onContextMenu="return false:") creating you own COM context menu for
IE is realy just a waste of time.

Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top