Add the Start application button in the IE Toolbar

Source: Internet
Author: User

In the IE Toolbar, add the button to start the application. This problem was originally difficult and I did not know how to solve it. Later, I found the relevant information on the Internet and found that the problem was actually very easy to solve. The specific practice of adding a button is to operate in the registry. Open the windows registry. Go to the following HKEY_LOCAL_MACHINE/software/Microsoft/Internet Explorer/extensions and click one of the following items (guid Number of 128 bits) you can see information about QQ in the IE Toolbar or applications such as flashget. To sum up the commonalities, we can find that there are several CLSID, default visible, buttontext, icon, hoticon, Exec. The main task is to set the content used for these item pairs. CLSID must be set to the guid of IE {1fba04ee-3024-11d2-8f1f-440f87abd16}. Default visible can be set to yes, buttontext sets the prompt information when you move the mouse to the corresponding button in the IE Toolbar. The icon corresponds to the corresponding icon in the toolbar, And the hoticon corresponds to the icon that changes when you move the mouse to the top.

In the VC environment, a small MFC test program is written based on some information on the Internet, mainly to modify the registration function.

 
Cregkey reg;
Char keyname [] = "software // Microsoft // Internet Explorer // extensions // {169d9b24-0842-4188-84ae-b836185aa522}"; // path to be registered in the Registry
Tchar pathname [max_path];
Tchar iconname [max_path];
Tchar hoticonname [max_path];

Getmodulefilename (0, pathname, max_path); // obtain the path of the executable file
Strcpy (iconname, pathname );
Strcpy (hoticonname, pathname );
Strcat (hoticonname, ", 111"); // all paths of hoticon
Strcat (iconname, ", 222"); // all paths of the icon

Reg. Create (HKEY_LOCAL_MACHINE, keyname );
Reg. setvalue ("{1fba04ee-3024-11d2-8f1f-440f87abd16}", "CLSID ");
Reg. setvalue ("yes", "Default visible ");
Reg. setvalue ("Honghe tobacco", "buttontext ");
Reg. setvalue (iconname, "icon ");
Reg. setvalue (hoticonname, "hoticon ");
Reg. setvalue ("C: // program files // thunder network // thunder // thunder.exe", "EXEC ");

We are currently trying to package the registry information into the installer.

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.