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.