BUG: Office Repaint Problem If Modal Form Is Shown from ActiveX EXE (242017)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
- Microsoft Excel 97 for Windows
- Microsoft Office Access 2003
- Microsoft Access 2002
- Microsoft Access 2000
- Microsoft Access 97
- Microsoft Outlook 2002
- Microsoft Outlook 2000
- Microsoft Office Word 2003
- Microsoft Word 2002
- Microsoft Word 2000
- Microsoft Word 97 for Windows
- Microsoft Project 98 for Windows
- Microsoft PowerPoint 97 for Windows
This article was previously published under Q242017 SYMPTOMS When a modal form is displayed from an ActiveX EXE
component called from VBA, the Office application that made the call does not
repaint correctly while the dialog is displayed. CAUSE When making an out-going call to an out-of-process COM
server, the main thread of the Office application is placed in an RPC thread
loop waiting for a response from the server. Because the server is waiting for
a modal form to be closed, the main thread of the Office application stops
responding. During that time, certain window messages are allowed to pass back
to the caller, but due to a limitation with the message filter used by most
Office applications, WM_PAINT messages are not getting sent back to the main
window for the Office application. The result is that the application does not
repaint while the modal form is displayed.
If the dialog is displayed
non-modal, the problem does not occur. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 3/23/2006 |
---|
Keywords: | kbAutomation kbbug kbpending KB242017 |
---|
|