The information in this article applies to:
SYMPTOMSAn MFC-based windowed ActiveX control on an HTML page paints incorrectly when you scroll the HTML page in the browser. The control appears distorted, showing successively larger bands at the bottom or top as it moves off the visible portion of the HTML page. CAUSEA performance enhancement was added to Internet Explorer 5 to improve the rendering of windowed ActiveX controls by manipulating the available window and clip regions for the control's window. When this code works on MFC controls, portions of the control's windows are invalidated but outside the clip region for the window. These regions are distorted and painting in OnDraw is clipped away from drawing over the top of them. RESOLUTIONTo solve this problem, add an OnPaint handler for the WM_PAINT message to the COleControl-derived class. In the OnPaint handler, reset the window region for the control:
This code results in some flicker in the control. Unfortunately, this effect is not preventable.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION
Windowless controls do not experience any painting problems as a result of this bug.
© Microsoft Corporation 1999, All Rights Reserved. Additional query words:
Keywords : kbActiveX kbCtrl kbCtrlCreate kbMFC kbVC600bug kbGrpInet kbIE500bug |
Last Reviewed: November 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |