BUG: WebBrowser in MFC Does Not Repaint After showModalDialog (183161)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
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().
STATUSMicrosoft 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:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbbug kbpending KB183161 |
---|
|