Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

BUG: Custom Toolbar Button May Not Toggle Custom Explorer Bar


View products that this article applies to.

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.

↑ Back to the top


Workaround

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

↑ Back to the top


Status

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

↑ Back to the top


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

  1. Download and unzip the Vs6samples.exe file.
    BandObjs: Band Object Implementation Sample
    BandObjs is a sample of an Explorer Bar.
  2. After the file is unzipped, open the Vs6.chm file, and then open the following topics:
    • Visual C++ Samples
    • Windows UI Samples
    • Shell Samples
    Click the link in the "Shell Samples" topic to retrieve the BandObj.exe sample, and then unzip the project files.
  3. 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:
  4. Start Internet Explorer, and then click the new toolbar button to reveal the BandObj Explorer Bar if it is not already visible.
  5. Click the Close button on the Explorer Bar to close the Explorer Bar.
  6. Try to click the toolbar button. Notice that this does not have any effect on the Explorer Bar.
  7. Click the toolbar button again. Notice that the Explorer Bar appears.

↑ Back to the top


References

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

↑ Back to the top


Keywords: KB810188, kbtoolbar

↑ Back to the top

Article Info
Article ID : 810188
Revision : 9
Created on : 11/29/2007
Published on : 11/29/2007
Exists online : False
Views : 450