WS_EX_WINDOWEDGE Doesn't Work Without a Window Frame Style

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

        - Microsoft Windows 95 version 4.0
    

The WS_EX_WINDOWEDGE style is new to Windows 95. The style specifies that a window has a border with a raised edge. If the WS_EX_WINDOWEDGE style is used on a window that doesn't have either the WS_THICKFRAME or WS_DLGFRAME style, the WS_EX_WINDOWEDGE style has no effect. This is because the WS_EX_WINDOWEDGE style modifies the window's frame. Therefore, if no frame is specified, then the window does not receive the 3-D effect.

This problem typically occurs when you are trying to give a raised edge to a control. Because controls by default have no frame, only a border, the WS_EX_WINDOWEDGE style is ignored. To work around the problem, add the WS_DLGFRAME style to the control.


Additional reference words: 95 raised edge child window.
KBCategory: kbui
KBSubcategory: UsrWndw


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.