PRB: Closed Application Appears As Gray Box in Taskbar (214655)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
    • Microsoft Windows 95
    • Microsoft Windows 98
    • Microsoft Windows NT Server 4.0
    • Microsoft Windows NT Workstation 4.0

This article was previously published under Q214655

SYMPTOMS

After an application closes, the taskbar is not updated and it still contains a gray box (without the window caption or icon). If you click the gray box, it disappears.

CAUSE

This problem occurs because the application has changed the window styles that affect the visibility in the taskbar.

For example, if the window changes its extended style to include WS_EX_TOOLWINDOW style and fails to reset the extended style before closing the window, the taskbar shows a gray button.

RESOLUTION

If you experience this behavior, reset the styles of the window or call ShowWindow with SW_HIDE for the application's main window while processing WM_CLOSE or WM_DESTROY to fix the problem.

STATUS

This behavior is by design.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbprb kbWndw KB214655