Microsoft KB Archive/934228

= A transparent layered window appears corrupted after the program stops responding, the program window is replaced by a ghost window, and then the program resumes in Windows Vista =

Article ID: 934228

Article Last Modified on 4/5/2007

-

APPLIES TO


 * Windows Vista Enterprise 64-bit Edition
 * Windows Vista Home Basic 64-bit Edition
 * Windows Vista Home Premium 64-bit Edition
 * Windows Vista Ultimate 64-bit Edition
 * Windows Vista Business
 * Windows Vista Business 64-bit Edition
 * Windows Vista Enterprise
 * Windows Vista Home Basic
 * Windows Vista Home Premium
 * Windows Vista Starter
 * Windows Vista Ultimate

-



SYMPTOMS
When a program stops responding in Windows Vista, top-level windows that are owned by the program are supposed to be replaced by a ghost window until the program resumes. When the program resumes, the ghost windows are replaced by the program windows. However, in some cases, the program windows may appear corrupted when the program resumes. This problem may occur if the following conditions are true:
 * The program window is transparent and uses the WS_EX_LAYERED extended window style.
 * The program window was replaced with a ghost window when the program stopped responding.

For example, when this problem occurs, the program window is not correctly repainted, and instead contains information that previously appeared in the ghost window.



RESOLUTION
To resolve this problem, make sure that threads that own top-level windows consistently process windows messages.

Alternatively, you can call the DisableProcessWindowsGhosting function to disable window ghosting for the affected application. You can also use the NoGhost compatibility fix in the Application Compatibility Toolkit.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
If a top-level window stops responding to messages for more than several seconds, the system considers the window to be unresponsive. In this case, the system hides the window. The system replaces the window with a ghost window that has the same Z order, location, size, and visual attributes. This behavior lets users do the following:
 * Move the window
 * Resize the window
 * Close the window

However, these are the only actions that are available because the application is actually not responding.

Additional query words: winvista hang

Keywords: kbexpertiseinter kbqfe kbprb KB934228

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.