BUG: Polygon ATL Sample Fails to Work in Internet Explorer 4.0

Last reviewed: January 9, 1998
Article ID: Q179135
The information in this article applies to:
  • Internet Client SDK, version 4.0
  • Microsoft Internet Explorer (Programming), version 4.0
  • Microsoft Internet ActiveX Controls, version 1.0
  • Microsoft Visual C++, 32-bit Editions, version 5.0
  • The Microsoft Active Template Library (ATL), versions 1.1, 2.1

SYMPTOMS

The PolyCtl.htm file that comes with the Polygon Active Template Library (ATL) sample, hosts the Polygon control in a Web page. This Web page increases the number of sides of the polygon when the user clicks inside the polygon and decreases the number of sides when the user clicks outside the polygon. However, in Internet Explorer 4.0, mouse clicks appear to have no affect on the number of sides of the polygon.

CAUSE

This is a bug in the PolyCtl sample. The first time the Polygon control is activated in Internet Explorer 4.0, it calculates its bounding rectangle incorrectly. This causes the control to interpret ClickOut events as ClickIn events.

RESOLUTION

To work around this problem, write script code to handle the Window_OnLoad event. In this event handler, set the number of sides to 3 or to any value that you desire.

Implement the following code to work around this problem:

   <SCRIPT LANGUAGE="VBScript">
      <!--
      Sub window_onLoad
         PolyCtl.Sides = 3
      End Sub
      -->
   </SCRIPT>

STATUS

Microsoft has confirmed this to be a bug in the Polygon ATL sample. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: PolyCtl Polygon
Keywords : AXSDKControls
Technology : ole internet kbinetdev
Version : WINDOWS:1.0,1.1,2.1,4.0; WINNT:5.0
Platform : WINDOWS winnt
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.