Show / Hide Table of Contents

Enum WindowStyle

Flags used for ToggleWindowStyle method

Namespace: WinUIEx
Assembly: WinUIEx.dll
Syntax
[Flags]
public enum WindowStyle

Fields

Name Description
Border

The window has a thin-line border.

Caption

The window has a title bar (includes the BORDER style).

Child

The window is a child window. A window with this style cannot have a menu bar. This style cannot be used with the POPUP style.

ChildWindow

Same as the Child style.

ClipChildren

Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window.

ClipSiblings

Clips child windows relative to each other; that is, when a particular child window receives a WM_PAINT message, the CLIPSIBLINGS style clips all other overlapping child windows out of the region of the child window to be updated. If CLIPSIBLINGS is not specified and child windows overlap, it is possible, when drawing within the client area of a child window, to draw within the client area of a neighboring child window.

Disabled

The window is initially disabled. A disabled window cannot receive input from the user. To change this after a window has been created, use the EnableWindow function.

DlgFrame

The window has a border of a style typically used with dialog boxes. A window with this style cannot have a title bar.

Group

The window is the first control of a group of controls. The group consists of this first control and all controls defined after it, up to the next control with the GROUP style. The first control in each group usually has the TABSTOP style so that the user can move from group to group. The user can subsequently change the keyboard focus from one control in the group to the next control in the group by using the direction keys. You can turn this style on and off to change dialog box navigation. To change this style after a window has been created, use the SetWindowLong function.

HScroll

The window has a horizontal scroll bar.

Iconic

The window is initially minimized. Same as the MINIMIZE style.

Maximize

The window is initially maximized.

MaximizeBox

The window has a maximize button. Cannot be combined with the EX_CONTEXTHELP style. The SYSMENU style must also be specified.

Minimize

The window is initially minimized. Same as the ICONIC style.

MinimizeBox

The window has a minimize button. Cannot be combined with the EX_CONTEXTHELP style. The SYSMENU style must also be specified.

Overlapped

The window is an overlapped window. An overlapped window has a title bar and a border. Same as the TILED style.

OverlappedWindow

The window is an overlapped window. Same as the TILEDWINDOW style.

Popup

The window is a pop-up window. This style cannot be used with the CHILD style.

PopupWindow

The window is a pop-up window. The CAPTION and POPUPWINDOW styles must be combined to make the window menu visible.

SizeBox

The window has a sizing border. Same as the THICKFRAME style.

SysMenu

The window has a window menu on its title bar. The CAPTION style must also be specified.

TabStop

The window is a control that can receive the keyboard focus when the user presses the TAB key. Pressing the TAB key changes the keyboard focus to the next control with the TABSTOP style. You can turn this style on and off to change dialog box navigation. To change this style after a window has been created, use the SetWindowLong function. For user-created windows and modeless dialogs to work with tab stops, alter the message loop to call the IsDialogMessage function.

ThickFrame

The window has a sizing border. Same as the SIZEBOX style.

Tiled

The window is an overlapped window. An overlapped window has a title bar and a border. Same as the OVERLAPPED style.

TiledWindow

The window is an overlapped window. Same as the OVERLAPPEDWINDOW style.

Visible

The window is initially visible. This style can be turned on and off by using the ShowWindow or SetWindowPos function.

VScroll

The window has a vertical scroll bar.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX