Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet Explorer Toolbar - How to add one
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00850615
Message ID:
00850649
Vues:
16
Yanick,

Internet Explorer toolbars (like Google Bar) are the special kind of the browser extensions. In few words, this is a specially registered COM object, which implements at least IObjectWithSite, IDeskBand interfaces and optionally a lot of other interfaces. You can find details in MSDN section "Browser Extensions". These extensions can be developed with VB, so one may suggest that they can be developed with VFP also. But in any case it not an easy task.
But you can simply add your own button to the Explorer toolbar. As MSDN describes in the "Adding Toolbar Buttons" article, you should:
1. Create a valid globally unique identifier (GUID). You can use Guidgen.exe.
2. Create a new key (with the GUID as the name) in the registry:
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\[Your GUID]
3. Create a new string value, Default Visible, in the registry:
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\[Your GUID[\Default Visible = "Yes"
4. Create a new string value, ButtonText, with desired text:
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\[Your GUID]\ButtonText = "My button"
Create a new string values, HotIcon and Icon, with full path to the .ico files, which contain color and greyscale icons:
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\[Your GUID]\HotIcon
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\[Your GUID]\Icon
5. Create a new string value, CLSID, with predefined value:
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\[Your GUID]\CLSID = "{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}"
6. Create a new string value, Exec, with full path to .exe that will be run:
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Extensions\[Your GUID]\Exec = "c:\FullPathToYourExe\MyExe.exe"
7. Have a break and have a KitKat (optionally).

Hope this helps.

>I'm looking into creating a new toolbar for internet explorer that would allow me to run my own application. [kinda like the Google Bar]
>
>I looked on MSDN and it seems that the control I need to be working with is the Rebar Control but I couldn't find an example other than this one which looks like C++ and my C++ skills are not good enough... anyone with a VFP version of the following code?!? Or any other way to accomplish the task?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform