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