Microsoft KB Archive/65959

PRB: Windows Are Not Repainted If Task Manager Window Is Moved PSS ID Number: Q65959 Article last modified on 09-06-1991 PSS database name: P_PresMan

1.21

OS/2

Summary:

SYMPTOMS If the Task Manager window is moved via the system menu, or by dragging it with the title bar, repainting is not performed in a client window. However, if the Task Manager window is closed using its system menu, all windows are repainted correctly.

CAUSE When the Task Manager window pops up, it saves the bits of the window it covers. When it is dismissed, the uncovered windows are repainted. However, if the Task Manager window is moved instead of being closed, the uncovered windows are not repainted automatically. Instead, they are sent WM_ERASEBACKGROUND and WM_PAINT messages.

RESOLUTION Normally, by taking care of the WM_PAINT message, the window will be repainted when it is uncovered.

In the Software/Data Library is a sample application named WNDR that draws a bitmap in the client area of the frame as well as the child frame window. The window procedures for these two clients take care of the WM_PAINT message; therefore, it does a repaint when the windows are uncovered. WNDR can be found in the Software/Data Library by searching on the keyword WNDR, the Q number of this article, or S12716. WNDR was archived using the PKware file-compression utility.

Copyright Microsoft Corporation 1991.