BUG: Custom Toolbar Button May Not Toggle Custom Explorer Bar (810188)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5.01
  • Microsoft Internet Explorer (Programming) 5.01 SP1
  • Microsoft Internet Explorer (Programming) 5.5
  • Microsoft Internet Explorer (Programming) 5.5 SP1
  • Microsoft Internet Explorer (Programming) 5.5 SP2
  • Microsoft Internet Explorer (Programming) version 6.0
  • Microsoft Internet Explorer (Programming) 6 (SP1)

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

  1. Download and unzip the Vs6samples.exe file. To download this file, visit the following Microsoft Developer Network (MSDN) Web site: 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.

REFERENCES

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

Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbToolbar KB810188