WindowStyles Enumeration

The following styles can be specified wherever a window style is required.

After the control has been created, these styles cannot be modified, except as noted.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum WindowStyles

Remarks

Members

Default 0 Default window style (WS_TILED + WS_OVERLAPPED).
Tiled 0 The window is an overlapped window. An overlapped window has a title bar and a border.
Overlapped 0 The window is an overlapped window. An overlapped window has a title bar and a border.
MaximizeBox 65,536 The window has a maximize button.

Cannot be combined with the WS_EX_CONTEXTHELP extended style.

The SysMenu style must also be specified.

Group 131,072 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.

MinimizeBox 131,072 The window has a minimize button.

Cannot be combined with the WS_EX_CONTEXTHELP extended style.

The SysMenu style must also be specified.

TabStop 131,072 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.

SizeFrame 262,144 The window has a sizing border.
SysMenu 524,288 The window has a window menu on its title bar.

The Caption style must also be specified.

HScroll 1,048,576 The window has a horizontal scroll bar.
VScroll 2,097,152 The window has a vertical scroll bar.
DlgFrame 4,194,304 The window has a border of a style typically used with dialog boxes.

A window with this style cannot have a title bar.

Border 8,388,608 The window has a thin-line border.
Caption 12,582,912 The window has a title bar.

(includes the Border style).

OverlappedWindow 13,565,952 The window is an overlapped window.
Maximize 16,777,216 The window is initially maximized.
ClipChildren 33,554,432 Excludes the area occupied by child windows when drawing occurs within the parent window.

This style is used when creating the parent window.

ClipSiblings 67,108,864 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 134,217,728 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.

Visible 268,435,456 The window is initially visible.

This style can be turned on and off by using the ShowWindow or SetWindowPos function.

Minimize 536,870,912 The window is initially minimized.
Child 1,073,741,824 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.

Popup 2,147,483,648 The window is a pop-up window.

This style cannot be used with the Child style.

PopupWindow 2,156,396,544 The window is a pop-up window.

The Caption and PopupWindow styles must be combined to make the window menu visible.

See Also