Microsoft KB Archive/810188

= BUG: Custom Toolbar Button May Not Toggle Custom Explorer Bar =

Article ID: 810188

Article Last Modified on 11/29/2007

-

APPLIES TO


 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer (Programming) 5.01 SP1
 * Microsoft Internet Explorer 5.5
 * Microsoft Internet Explorer (Programming) 5.5 SP1
 * Microsoft Internet Explorer (Programming) 5.5 SP2
 * Microsoft Internet Explorer 6.0

-





SUMMARY
You create a custom Internet Explorer toolbar button and link it to a custom Explorer Bar. If you manually close the Explorer Bar by clicking the Close button instead of using the toolbar button, the Explorer Bar does not appear the next time you click the toolbar button.



WORKAROUND
To display the Explorer Bar, click the toolbar button again.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
The internal visible state of the Explorer Bar is not being set correctly because a completely different code path is taken to hide the Explorer Bar when you manually close it.

Steps to Reproduce the Problem
 Download and unzip the Vs6samples.exe file. To download this file, visit the following Microsoft Developer Network (MSDN) Web site:

BandObjs: Band Object Implementation Sample

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/samples/internet/components/bandobjs/default.asp

BandObjs is a sample of an Explorer Bar. After the file is unzipped, open the Vs6.chm file, and then open the following topics:  Visual C++ Samples Windows UI Samples Shell Samples</ul>

Click the link in the &quot;Shell Samples&quot; topic to retrieve the BandObj.exe sample, and then unzip the project files.</li> Build the project. Create a custom Toolbar object. Make sure that you use the Class ID (CLSID) of the Explorer Bar in the BandCLSID registry value. You must also create a new globally unique identifier (GUID) and two new icons. For more information about how to do this, visit the following MSDN Web site:

Adding Toolbar Buttons

http://msdn2.microsoft.com/en-us/library/Aa753588.aspx

</li> Start Internet Explorer, and then click the new toolbar button to reveal the BandObj Explorer Bar if it is not already visible.</li> Click the Close button on the Explorer Bar to close the Explorer Bar.</li> Try to click the toolbar button. Notice that this does not have any effect on the Explorer Bar.</li> Click the toolbar button again. Notice that the Explorer Bar appears.</li></ol>

<div class="references_section">