Microsoft KB Archive/250518

= PRB: Repaint Problem with Btnmenu.ocx with Internet Explorer =

Article ID: 250518

Article Last Modified on 11/23/2006

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 4.01 Service Pack 1
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01

-



This article was previously published under Q250518



SYMPTOMS
When you load Btnmenu.ocx on a Web page, Internet Explorer will render the control correctly the first time. However, Internet Explorer might have problems repainting the control after you reload the page. Nevertheless, you can still invoke the methods of Btnmenu.ocx.



RESOLUTION
Btnmenu.ocx was originally included with Internet Explorer 3.0. This control is considered obsolete and is no longer supported. The preferred method to achieve the same functionality is to use Dynamic HTML and cascading style sheets.



Steps to Reproduce Behavior
  Create a html page called Start.htm with the following code:    function OpenWindow { window.open("ShowMenu.htm");

} 

  

  Create another html page called ShowMenu.htm with the following code:   <SCRIPT LANGUAGE="JScript"> function ShowAbove {   BtnMenu1.AboutBox; } </SCRIPT>

<OBJECT ID=BtnMenu1 CLASSID="clsid:52DFAE60-CEBF-11CF-A3A9-00A0C9034920" CODEBASE="http://activex.microsoft.com/controls/iexplorer/x86/btnmenu.cab#version=4,71,115,0" WIDTH=80 HEIGHT=25 ALIGN=MIDDLE> <PARAM NAME="Caption" VALUE="Menu"> <PARAM NAME="Menuitem[0]" VALUE="Item1"> <PARAM NAME="Menuitem[1]" VALUE="Item2"> <PARAM NAME="Menuitem[2]" VALUE="Item3"> <PARAM NAME="Menuitem[3]" VALUE="Item4"> <PARAM NAME="Menuitem[4]" VALUE=""> <PARAM NAME="Menuitem[5]" VALUE="Item6"> </OBJECT> <INPUT TYPE="BUTTON" onClick="ShowAbove;" VALUE="Show About Box"> <INPUT TYPE="BUTTON" onClick="self.close;" VALUE="Close Window"> </BODY> </HTML> </li> Navigate to Start.htm with Internet Explorer.</li> Click Open Window to open another Internet Explorer Window.</li> After the installation of Btnmenu.ocx, you will see that the control comes up correctly, and you could click on the control to see the menu items.</li> Click Close Window to close this window.</li> Click Open Window at the Start.htm page again.</li> This time, the Btnmenu.ocx control does not appear in the Internet Explorer window. However, if you click on Show About Box, a message box will appear displaying information about Btnmenu.ocx.</li></ol>

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:

https://partner.microsoft.com/global/30000104

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

<div class="references_section">