Поделиться через


XAML for Windows Embedded Window Style Constants (Compact 2013)

3/28/2014

You can use window style constants in the XRWindowCreateParams.Style member to configure the host window.

The following table lists the possible values.

  • WS_BORDER
    Creates a window that has a thin-line border.
  • WS_CAPTION
    Creates a window that has a title bar and a thin-line border. This includes the effect of the WS_BORDER style.
  • WS_CHILD
    Creates a child window. This style cannot be used with the WS_POPUP style.
  • WS_CHILDWINDOW
    Same as the WS_CHILD style.
  • WS_CLIPCHILDREN
    Excludes the area occupied by child windows within the parent window when the parent is redrawn. Use this style when you create the parent window.
  • WS_CLIPSIBLINGS
    Clips overlapping child windows out of the region of the child window that is redrawn when the window is updated. You can specify WS_CLIPSIBLINGS so that when child windows overlap, the OS does not draw in a neighboring child window when updating this window.
  • WS_DISABLED
    Creates a disabled window. A disabled window cannot receive input from the user.
  • WS_DLGFRAME
    Creates a dialog box window. A window with this style cannot have a title bar.
  • WS_GROUP
    Specifies the first control in a group. The group consists of the first control and all controls after it until the next control with the WS_GROUP style. The first control in each group usually has the WS_TABSTOP style so that the user can move from group to group. The user can change the keyboard focus from one control in the group to the next control in the group by using the arrow keys.
  • WS_HSCROLL
    Creates a window with a horizontal scroll bar.
  • WS_MAXIMIZEBOX
    Creates a window with a Maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style.
  • WS_MINIMIZEBOX
    Creates a window with a Minimize button. Cannot be combined with the WS_EX_CONTEXTHELP style.
  • WS_OVERLAPPED
    Creates an overlapped window. An overlapped window has a title bar and a border.
  • WS_OVERLAPPEDWINDOW
    Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles.

    Although WS_OVERLAPPEDWINDOW is not supported in Windows Embedded Compact, the functionality can still be achieved by using a bitwise OR of the style flags WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX.

  • WS_POPUP
    Creates a pop-up window. This style cannot be used with the WS_CHILD style.
  • WS_POPUPWINDOW
    Creates a pop-up window with WS_BORDER, WS_POPUP, and WS_SYSMENU styles. You must use the WS_CAPTION with this style to make the window menu visible.
  • WS_SIZEBOX
    Creates a window with a sizing border. This is the same as the WS_THICKFRAME style.
  • WS_SYSMENU
    Creates a window that has a Close (X) button in the non-client area.
  • WS_TABSTOP
    Specifies a control that receives keyboard focus when the user presses TAB. Pressing TAB changes the keyboard focus to the next control with the WS_TABSTOP style.
  • WS_THICKFRAME
    Creates a window with a sizing border. This is the same as the WS_SIZEBOX style.
  • WS_VISIBLE
    Creates a window that is immediately visible. By default a new window is invisible so that you can add content before making the completed window visible.
  • WS_VSCROLL
    Creates a window with a vertical scroll bar.

See Also

Reference

XAML for Windows Embedded Constants
XRWindowCreateParams
CreateWindowEx