Article ID: 183161
Article Last Modified on 5/11/2006
APPLIES TO
- Microsoft Internet Explorer 4.0 128-Bit Edition
- Microsoft Internet Explorer 4.01 Service Pack 2
This article was previously published under Q183161
SYMPTOMS
The WebBrowser control hosted in an MFC application does not repaint
properly after the DHTML showModalDialog() function is called by the
displayed page and the dialog box is closed. Other dialog boxes such as
Alerts do not cause this problem.
After the dialog box is closed, a white patch, which is the size of
the dialog box, remains.
CAUSE
The WebBrowser control does not handle the WM_ERASEBKGND message correctly
in this case.
RESOLUTION
Handle the WM_ERASEGKGND message in your CView-derived class. Return from
the OnEraseBkgnd() method without calling the base class OnEraseBkgnd().
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
REFERENCES
For more information about the WM_ERASEBKGND message and the OnEraseBkgnd
method, please refer to the Visual C++ 5.0 documentation.
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Additional query words: repaint erase WM_ERASEBKGND
Keywords: kbbug kbpending KB183161