How to add a button to the IE toolbar

Source: Internet
Author: User

Questions raised:

PowerWord, network ants and other software installation will be to IE's toolbar to add their own buttons. When the button is pressed, the corresponding action is made, how does this function come true? After reading this article, you can also add the buttons of your own application to IE's sidebar.

Basic principle:

Starting with IE5 allows us to add our own buttons to the toolbar, essentially modifying the registry to add the information needed to create this button.

Implementation steps:

1. Create GUID for this button (globally unique identifier)

You can generate GUIDs through the Guidgen.exe in Visual Studio.

For example, the GUID I generated is {1fba04ee-3024-11d2-8f1f-0000f87abd16}

I use this GUID to illustrate the following examples.

2. Create subkeys HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\extensions\{1fba04ee-3024-11d2-8f1f-0000f87abd16}

3. Under this subkey, create the following string value.

(1) CLSID

This is the CLSID of IE, whose value must be {1FBA04EE-3024-11D2-8F1F-0000F87ABD16}

(2) Default Visible

Indicates whether this button is visible by default, yes is visible, no is invisible

(3) ButtonText

Button text

(4) Icon

The default state of the icon full path, such as C:\vckbase.ico. It can also be an icon contained in an EXE file, such as: c:\progra~1\netants\netants.exe,1000

(5) Hoticon

The full path to the icon when you move the mouse over the button

If the key is pressed after the button needs to perform the corresponding action: can be COM object, browse Bar Explorer Bar, script scripts, executable files.

Let's introduce each one individually.

①com objects

You need to create a string value named Clsidextension, whose value should be the GUID of this COM object

For example, Kingsoft uses Clsidextension to invoke its own COM object.

② Browse Bar Explorer Bar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.