PRB: COleMessageFilter Doesn't Process WM_PAINT (152074)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
This article was previously published under Q152074 SYMPTOMS
If an automation client calls a method of an automation server that brings
up a modal dialog, the client area below the dialog may not re-paint itself
if the dialog is moved over it.
CAUSE
The painting problem occurs because the WM_PAINT messages are in the queue,
but are not dispatched.
RESOLUTION
One solution is to retrieve and dispatch all WM_PAINT messages when
IMessageFilter::MessagePending is called. The sample code below
demonstrates one way for this resolution to be implemented.
Modification Type: | Major | Last Reviewed: | 10/24/2003 |
---|
Keywords: | kbcode kbprb KB152074 |
---|
|