Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Show/Hide a toolband

11 views
Skip to first unread message

Hon Yuen. Ng

unread,
Jun 24, 2004, 5:30:40 AM6/24/04
to
Hi

I'm new to this group, if i'm in the wrong one, please let me know.
My question goes like this:

I've programmed a IE toolband, after registering the dll, it's not shown
when IE starts. May i know how to show/hide a toolband programmatically?
I'm using IE6, W2K.

Thanks in advance,

From,
Hon Yuen, Ng


Scott [MSFT] @discussions.microsoft.com Alex Scott [MSFT]

unread,
Jun 25, 2004, 11:53:02 AM6/25/04
to
Have you tried the following Microsoft knowledge base article?

How to programmatically activate a band object
http://support.microsoft.com/default.aspx?scid=kb;en-us;255920

SUMMARY
The only supported way to programmatically show and hide a band object (such as an Explorer Bar, CommBand, or ToolBand) in Internet Explorer is to use the IWebBrowser2::ShowBrowserBar method.
MORE INFORMATION
In many cases, developers of band objects want to be able to automatically display their band object when the user starts a new instance of Internet Explorer. The best way to achieve this functionality is to use a Browser Helper Object (BHO) in conjunction with the band object. In this way, the BHO can decide whether or not to programmatically activate the band object based on registry keys or other settings persisted by the band object itself.

To build a minimal BHO that can programmatically activate a band object (the Search bar, in this example), you can create a new ATL/COM AppWizard project and add a new Internet Explorer object. Then, override IObjectWithSite::SetSite to achieve the desired functionality. The new SetSite implementation should look as follows:

Another interesting article which might help is; http://support.microsoft.com/default.aspx?scid=kb;en-us;247705

Alex Scott [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.

0 new messages