INFO: New Window Styles in Windows 95

Last reviewed: February 6, 1997
Article ID: Q125679
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with:

        - Microsoft Windows 95 version 4.0
    

SUMMARY

Windows 95 provides a number of new window styles that help make the user interface more attractive and intuitive. These new styles are listed in this article. Most of the new styles are extended styles, which are specified with the CreateWindowsEx() function. All Windows version 3.1 window styles are still usable in Windows 95.

MORE INFORMATION

Here are the new styles:

WS_EX_CLIENTEDGE        Specifies that a window has a 3D look -- that is
                        a border with a sunken edge.

WS_EX_CONTEXTHELP       Includes a question mark in the title bar of the
                        window. When the user clicks the question mark,
                        the cursor changes to a question mark with a
                        pointer. If the user then clicks a child window,
                        the child receives a WM_HELP message.

WS_EX_CONTROLPARENT     Allows the user to navigate among the child windows
                        of the window by using the TAB key.

WS_EX_LEFT              Gives window generic left-aligned properties.
                        This is the default.

WS_EX_LEFTSCROLLBAR     Places vertical scroll bar to the left of the
                        client area.

WS_EX_LTRREADING        Displays the window text using left-to-right
                        reading order properties. This is the default.

WS_EX_MDICHILD          Creates an MDI child window.

WS_EX_OVERLAPPEDWINDOW Combines the WS_EX_CLIENTEDGE and WS_EX_WINDOWEDGE
                        styles.

WS_EX_PALETTEWINDOW     Combines the WS_EX_WINDOWEDGE, WS_EX_SMCAPTION,
                        and WS_EX_TOPMOST styles.

WS_EX_RIGHT             Gives window generic right-aligned properties.
                        This depends on the window class.

WS_EX_RIGHTSCROLLBAR    Places vertical scroll bar (if present) to the
                        right of the client area. This is the default.

WS_EX_RTLREADING        Displays the window text using right-to-left
                        reading order properties.

WS_EX_STATICEDGE        Creates a window with a three-dimensional border
                        style intended to be used for items that do not
                        accept user input.

WS_EX_TOOLWINDOW        Creates a tool window, which is a window intended
                        to be used as a floating toolbar. A tool window has
                        a title bar that is shorter than a normal title
                        bar, and the window title is drawn using a smaller
                        font. A tool window does not appear in the task bar
                        or in the window that appears when the user presses
                        ALT+TAB.

WS_EX_WINDOWEDGE        Specifies that a window has a border with a raised
                        edge.


KBCategory: kbui
KBSubcategory: UsrWndw
Additional reference words: 4.00 CreateWindowEx kbinf



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: February 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.