I don't see my IE Toolbar

  • Thread starter Thread starter keandi
  • Start date Start date
K

keandi

Hi. I use next codes..

---------------------------------------------------
//my.rgs
HKLM
{
NoRemove SOFTWARE
{
NoRemove Microsoft
{
NoRemove Windows
{
NoRemove CurrentVersion
{
NoRemove Explorer
{
NoRemove 'Browser Helper Objects'
{
ForceRemove
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
}
}
}
}
}
}



}


//STDMETHODIMP SetSite(IUnknown* pUnkSite)
VARIANT vtBandGUID, vtShow;
vtBandGUID.vt = VT_BSTR;
vtBandGUID.bstrVal =
SysAllocString(OLESTR("{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"));
vtShow.vt = VT_BOOL;
vtShow.boolVal = true;
hr = pBrowser->ShowBrowserBar(&vtBandGUID, &vtShow, 0);

if (SUCCEEDED(hr)) {
int a = 1;
}
SysFreeString(vtBandGUID.bstrVal);
pBrowser->Release();

//-------------------------------------------------------------------------­--------------------



I heard the IE toolbar appear in IExplorer alwasy, In case of 'my.rgs'
But the IE toolbar doesn't appear when I register the toolbar.
And when I check to use the toolbar on IExplorer, then it appears on
IExplorer.
And, from then, I can see it always (even if I uncheck the toolbar on
menu on IExplorer).


How can I fix it?
 
Hi Keandi,

You have to register your Toolbars COM CLSID under the keys

HKLM\Software\Microsoft\Internet Explorer\Toolbars
and
HKCU\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser
or ShellBrowser etc (see the subkeys here)

Then I think you have to restart the browser.. I think Google and the like
close the current window and then open a hyperlink to a 'Sucessfully
Installed' Page. On this page they use the showbrowserbar method to display
the toolbar.

Also in your COM definitions are you using ImplementedCategories?

Have a look how other toolbars implement their COM interface.

Regards.
Hi. I use next codes..

---------------------------------------------------
//my.rgs
HKLM
{
NoRemove SOFTWARE
{
NoRemove Microsoft
{
NoRemove Windows
{
NoRemove CurrentVersion
{
NoRemove Explorer
{
NoRemove 'Browser Helper Objects'
{
ForceRemove
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
}
}
}
}
}
}



}


//STDMETHODIMP SetSite(IUnknown* pUnkSite)
VARIANT vtBandGUID, vtShow;
vtBandGUID.vt = VT_BSTR;
vtBandGUID.bstrVal =
SysAllocString(OLESTR("{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"));
vtShow.vt = VT_BOOL;
vtShow.boolVal = true;
hr = pBrowser->ShowBrowserBar(&vtBandGUID, &vtShow, 0);

if (SUCCEEDED(hr)) {
int a = 1;
}
SysFreeString(vtBandGUID.bstrVal);
pBrowser->Release();

//-------------------------------------------------------------------------­--------------------



I heard the IE toolbar appear in IExplorer alwasy, In case of 'my.rgs'
But the IE toolbar doesn't appear when I register the toolbar.
And when I check to use the toolbar on IExplorer, then it appears on
IExplorer.
And, from then, I can see it always (even if I uncheck the toolbar on
menu on IExplorer).


How can I fix it?
 
Back
Top