PRB: App Desktop Toolbars Must Have WS_EX_TOOLWINDOW Style

Last reviewed: September 29, 1995
Article ID: Q132965
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with:

        - Microsoft Windows 95 version 4.0
    

SYMPTOMS

A problem can occur when an Application Desktop Toolbar (AppBar) is registered and the original position is set. The system reserves the desktop space the AppBar requested by moving all other shell objects and windows out of that rectangle. The problem is that the system then moves the AppBar window out of that rectangle as well.

CAUSE

When an AppBar requests some area on the desktop to occupy, the shell enumerates the windows in the task list and moves those windows outside of the newly reserved area. If your AppBar window appears in the task list it too is moved outside of the area.

RESOLUTION

When creating an Application Desktop Toolbar, the AppBar window must have the WS_EX_TOOLWINDOW window style for the shell to handle the AppBar window correctly. The WS_EX_TOOLWINDOW style prevents the AppBar window from appearing in the task list. The WS_EX_PALETTEWINDOW style can also be used because it includes the WS_EX_TOOLWINDOW style.

STATUS

This behavior is by design.


Additional reference words: AppBar 4.00 Windows 95
KBCategory: kbui kbprb
KBSubcategory: UsrShell


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 29, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.