HOWTO: Add to or Remove Windows from the Task List

ID: Q99800

The information in this article applies to:

SUMMARY

There are no functions included in the Windows Software Development Kit (SDK) to add or remove windows from the task list. All top-level windows (that is, windows without parents) that are visible will automatically appear in the task list. A window can be removed from the task list by making it hidden. Call ShowWindow() with the SW_HIDE parameter to hide the window. To make it visible again, call ShowWindow() with the appropriate parameter such as SW_SHOW or SW_SHOWNORMAL.

NOTE: On Windows 95 or later, and Windows NT 4.0 or later, hiding a top- level window also removes the window from the taskbar.

Additional query words: tasklist

Keywords          : kbNTOS kbGrpUser kbWinOS kbWndw kbWndwProp 
Issue type        : kbhowto

Last Reviewed: December 24, 1998