MiniGUI API Reference (MiniGUI-Processes)  v5.0.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Modules | Macros
Window styles

Modules

 Styles for main window types/levels
 

Macros

#define WS_NONE   0x00000000L
 None style. More...
 
#define WS_MINIMIZEBOX   0x80000000L
 Creates a window with minimizing box on caption. More...
 
#define WS_MAXIMIZEBOX   0x40000000L
 Creates a window with maximizing box on caption. More...
 
#define WS_CAPTION   0x20000000L
 Creates a main window with caption. More...
 
#define WS_SYSMENU   0x10000000L
 Creates a main window with system menu. More...
 
#define WS_VISIBLE   0x08000000L
 Creates a window initially visible. More...
 
#define WS_DISABLED   0x04000000L
 Creates a window initially disabled. More...
 
#define WS_DLGFRAME   0x00800000L
 The main window has a fixed frame, i.e. user can not drag the border of the window. More...
 
#define WS_THICKFRAME   0x00400000L
 Creates a main window with thick frame. More...
 
#define WS_THINFRAME   0x00200000L
 Creates a main window with thin frame. More...
 
#define WS_GROUP   0x00800000L
 Indicates the control is the leader of a group. More...
 
#define WS_TABSTOP   0x00400000L
 Indicates the user can set the input focus to the control by using Tab key. More...
 
#define WS_ALWAYSTOP   0x00100000L
 Indicates the main window is always on top of others. More...
 
#define WS_CHILD   0x00080000L
 Indicates the window is a child. More...
 
#define WS_VSCROLL   0x00040000L
 Creates a window with vertical scroll bar. More...
 
#define WS_HSCROLL   0x00020000L
 Creates a window with horizontal scroll bar. More...
 
#define WS_BORDER   0x00010000L
 Creates a window with border. More...
 
#define WS_EX_NONE   0x00000000L
 No any extended window style. More...
 
#define WS_EX_CONTROL_MASK   0x0000000FL
 The extended style mask for control use. More...
 
#define WS_EX_TROUNDCNS   0x00000010L
 The window have round corners at top edge. More...
 
#define WS_EX_BROUNDCNS   0x00000020L
 The window have round corners at bottom edge. More...
 
#define WS_EX_USEPRIVATECDC   0x00000040L
 The window has its own private client device context. More...
 
#define WS_EX_NOTDRAGGABLE   0x00000080L
 A style controlling whether a main window can be dragged by using mouse. More...
 
#define WS_EX_USEPARENTFONT   0x00000100L
 The window uses the font of its parent as the default font. More...
 
#define WS_EX_USEPARENTCURSOR   0x00000200L
 The window uses the cursor of its parent as the default cursor. More...
 
#define WS_EX_USEPARENTRDR   0x00000400L
 The window use the same window renderer as parent. More...
 
#define WS_EX_NOPARENTNOTIFY   0x00000800L
 The window will not send any notification to the parent. More...
 
#define WS_EX_AUTOSECONDARYDC   0x00001000L
 The window creates its own secondary device context automatically. More...
 
#define WS_EX_TRANSPARENT   0x00002000L
 The window is transparent. More...
 
#define WS_EX_TOPMOST   0x00004000L
 The main window is in the higher level. More...
 
#define WS_EX_TOOLWINDOW   0x00008000L
 The main window is a tool window, which can not gain the input focus. More...
 
#define WS_EX_LEFTSCROLLBAR   0x00040000L
 The horizontal scroll bar of the window is located at left. More...
 
#define WS_EX_RIGHTSCROLLBAR   0x00000000L
 The horizontal scroll bar of the window is located at right (default). More...
 
#define WS_EX_DLGHIDE   0x00100000L
 The dialog won't show immediately after it is created. More...
 
#define WS_EX_AUTOPOSITION   0x00200000L
 The position of the main window will be determined by system. More...
 
#define WS_EX_NOCLOSEBOX   0x00400000L
 The main window has no closing box on its caption. More...
 
#define WS_EX_CLIPCHILDREN   0x00800000L
 When paint the window, the children areas will be clipped. More...
 
#define WS_EX_LFRDR_MASK   0x0F000000L
 The style mask for LF renderer internal usage. More...
 
#define WS_EX_LFRDR_CUSTOM1   0x01000000L
 The user-defined extended style. It's often used to process user-defined hotspot area. More...
 
#define WS_EX_LFRDR_CUSTOM2   0x02000000L
 The user-defined extended style. More...
 
#define WS_EX_LFRDR_CUSTOM3   0x04000000L
 The user-defined extended style. More...
 
#define WS_EX_LFRDR_CUSTOM4   0x08000000L
 The user-defined extended style. More...
 
#define WS_EX_INTERNAL_MASK   0xF0000000L
 The style mask for internal use. More...
 

Detailed Description

Macro Definition Documentation

◆ WS_ALWAYSTOP

#define WS_ALWAYSTOP   0x00100000L

Indicates the main window is always on top of others.

Since 5.0.0.

Definition at line 4331 of file window.h.

◆ WS_BORDER

#define WS_BORDER   0x00010000L

Creates a window with border.

Definition at line 4358 of file window.h.

◆ WS_CAPTION

#define WS_CAPTION   0x20000000L

Creates a main window with caption.

Definition at line 4260 of file window.h.

◆ WS_CHILD

#define WS_CHILD   0x00080000L

Indicates the window is a child.

Definition at line 4340 of file window.h.

◆ WS_DISABLED

#define WS_DISABLED   0x04000000L

Creates a window initially disabled.

Definition at line 4281 of file window.h.

◆ WS_DLGFRAME

#define WS_DLGFRAME   0x00800000L

The main window has a fixed frame, i.e. user can not drag the border of the window.

Definition at line 4296 of file window.h.

◆ WS_EX_AUTOPOSITION

#define WS_EX_AUTOPOSITION   0x00200000L

The position of the main window will be determined by system.

If a main window has this extend style when creating it, MiniGUI will determine the position in the screen for the main window. If the width or the height of the window specified in MAINWINCREATE structure is zero, MiniGUI will also determine a default size for the main window.

Under the compositing schema, the compositor is responsible to calculate the position and the size for a main window.

Since 5.0.0

Definition at line 4696 of file window.h.

◆ WS_EX_AUTOSECONDARYDC

#define WS_EX_AUTOSECONDARYDC   0x00001000L

The window creates its own secondary device context automatically.

See also
CreateSecondaryDC

Definition at line 4625 of file window.h.

◆ WS_EX_BROUNDCNS

#define WS_EX_BROUNDCNS   0x00000020L

The window have round corners at bottom edge.

Definition at line 4576 of file window.h.

◆ WS_EX_CLIPCHILDREN

#define WS_EX_CLIPCHILDREN   0x00800000L

When paint the window, the children areas will be clipped.

Definition at line 4708 of file window.h.

◆ WS_EX_CONTROL_MASK

#define WS_EX_CONTROL_MASK   0x0000000FL

The extended style mask for control use.

Definition at line 4377 of file window.h.

◆ WS_EX_DLGHIDE

#define WS_EX_DLGHIDE   0x00100000L

The dialog won't show immediately after it is created.

Definition at line 4680 of file window.h.

◆ WS_EX_INTERNAL_MASK

#define WS_EX_INTERNAL_MASK   0xF0000000L

The style mask for internal use.

Do not use the bits in this mask for applications.

Definition at line 4756 of file window.h.

◆ WS_EX_LEFTSCROLLBAR

#define WS_EX_LEFTSCROLLBAR   0x00040000L

The horizontal scroll bar of the window is located at left.

Definition at line 4668 of file window.h.

◆ WS_EX_LFRDR_CUSTOM1

#define WS_EX_LFRDR_CUSTOM1   0x01000000L

The user-defined extended style. It's often used to process user-defined hotspot area.

Definition at line 4721 of file window.h.

◆ WS_EX_LFRDR_CUSTOM2

#define WS_EX_LFRDR_CUSTOM2   0x02000000L

The user-defined extended style.

See also
WS_EX_LFRDR_CUSTOM1

Definition at line 4729 of file window.h.

◆ WS_EX_LFRDR_CUSTOM3

#define WS_EX_LFRDR_CUSTOM3   0x04000000L

The user-defined extended style.

See also
WS_EX_LFRDR_CUSTOM1

Definition at line 4737 of file window.h.

◆ WS_EX_LFRDR_CUSTOM4

#define WS_EX_LFRDR_CUSTOM4   0x08000000L

The user-defined extended style.

See also
WS_EX_LFRDR_CUSTOM1

Definition at line 4745 of file window.h.

◆ WS_EX_LFRDR_MASK

#define WS_EX_LFRDR_MASK   0x0F000000L

The style mask for LF renderer internal usage.

Definition at line 4714 of file window.h.

◆ WS_EX_NOCLOSEBOX

#define WS_EX_NOCLOSEBOX   0x00400000L

The main window has no closing box on its caption.

Definition at line 4702 of file window.h.

◆ WS_EX_NONE

#define WS_EX_NONE   0x00000000L

No any extended window style.

Definition at line 4371 of file window.h.

◆ WS_EX_NOPARENTNOTIFY

#define WS_EX_NOPARENTNOTIFY   0x00000800L

The window will not send any notification to the parent.

See also
NotifyParentEx

Definition at line 4617 of file window.h.

◆ WS_EX_NOTDRAGGABLE

#define WS_EX_NOTDRAGGABLE   0x00000080L

A style controlling whether a main window can be dragged by using mouse.

Definition at line 4590 of file window.h.

◆ WS_EX_RIGHTSCROLLBAR

#define WS_EX_RIGHTSCROLLBAR   0x00000000L

The horizontal scroll bar of the window is located at right (default).

Definition at line 4674 of file window.h.

◆ WS_EX_TOOLWINDOW

#define WS_EX_TOOLWINDOW   0x00008000L

The main window is a tool window, which can not gain the input focus.

Definition at line 4656 of file window.h.

◆ WS_EX_TOPMOST

#define WS_EX_TOPMOST   0x00004000L

The main window is in the higher level.

Before 5.0.0, you can create a main window with this style in order to show the main window above all normal windows, and if you use MiniGUI-Processes runtime mode, the server (mginit) will always create global main windows.

Since 5.0.0, we introduce a concept of levels for main windows. We can use new styles like WS_EX_WINTYPE_GLOBAL to create main windows in different levels. For historical reasons, you can still use this style, but MiniGUI will create a main window in the higher level for this styele.

See also
Styles for main window types/levels

Definition at line 4650 of file window.h.

◆ WS_EX_TRANSPARENT

#define WS_EX_TRANSPARENT   0x00002000L

The window is transparent.

Note
This style is only implemented for controls.

Definition at line 4632 of file window.h.

◆ WS_EX_TROUNDCNS

#define WS_EX_TROUNDCNS   0x00000010L

The window have round corners at top edge.

Definition at line 4570 of file window.h.

◆ WS_EX_USEPARENTCURSOR

#define WS_EX_USEPARENTCURSOR   0x00000200L

The window uses the cursor of its parent as the default cursor.

Definition at line 4603 of file window.h.

◆ WS_EX_USEPARENTFONT

#define WS_EX_USEPARENTFONT   0x00000100L

The window uses the font of its parent as the default font.

Definition at line 4597 of file window.h.

◆ WS_EX_USEPARENTRDR

#define WS_EX_USEPARENTRDR   0x00000400L

The window use the same window renderer as parent.

Definition at line 4609 of file window.h.

◆ WS_EX_USEPRIVATECDC

#define WS_EX_USEPRIVATECDC   0x00000040L

The window has its own private client device context.

See also
CreatePrivateClientDC

Definition at line 4584 of file window.h.

◆ WS_GROUP

#define WS_GROUP   0x00800000L

Indicates the control is the leader of a group.

Note
This style is valid only for controls.

Definition at line 4315 of file window.h.

◆ WS_HSCROLL

#define WS_HSCROLL   0x00020000L

Creates a window with horizontal scroll bar.

Definition at line 4352 of file window.h.

◆ WS_MAXIMIZEBOX

#define WS_MAXIMIZEBOX   0x40000000L

Creates a window with maximizing box on caption.

Note
This style is valid only for main window.

Definition at line 4254 of file window.h.

◆ WS_MINIMIZEBOX

#define WS_MINIMIZEBOX   0x80000000L

Creates a window with minimizing box on caption.

Note
This style is valid only for main window.

Definition at line 4247 of file window.h.

◆ WS_NONE

#define WS_NONE   0x00000000L

None style.

Definition at line 4237 of file window.h.

◆ WS_SYSMENU

#define WS_SYSMENU   0x10000000L

Creates a main window with system menu.

Definition at line 4266 of file window.h.

◆ WS_TABSTOP

#define WS_TABSTOP   0x00400000L

Indicates the user can set the input focus to the control by using Tab key.

Note
This style is valid only for controls.

Definition at line 4323 of file window.h.

◆ WS_THICKFRAME

#define WS_THICKFRAME   0x00400000L

Creates a main window with thick frame.

Definition at line 4302 of file window.h.

◆ WS_THINFRAME

#define WS_THINFRAME   0x00200000L

Creates a main window with thin frame.

Definition at line 4308 of file window.h.

◆ WS_VISIBLE

#define WS_VISIBLE   0x08000000L

Creates a window initially visible.

Definition at line 4275 of file window.h.

◆ WS_VSCROLL

#define WS_VSCROLL   0x00040000L

Creates a window with vertical scroll bar.

Definition at line 4346 of file window.h.