Extended styles and their values for forms

Source: Internet
Author: User

Extended styles and their values for forms

Form Extension Style splitter
Ws_ex_acceptfiles = 0x00000010
Indicates that a created window has a drag file function


Ws_ex_appwindow = 0x00040000
Force a visible top-level window to the toolbar


Ws_ex_clientedge = 0x00000200
Make a window have a sunken border


ws_ex_composited = 0x02000000
Windows XP: Use double buffering for all child windows of a form to draw from low to high, see remark entry. If this window is already using the following values in the classic style CS_OWNDC, cs_classdc,ws_ex_ Contexthelp. This parameter will not be used.
This style of window in the title bar has a question mark, when the support click on a question mark, the mouse becomes a question mark, if the user then click a child window, the Sub-window will receive a WM_HELP message. The child window will pass this message to his parent process, which will use Help_wm_ The help command calls the WinHelp function. This helper often pops up a typical window that contains help for its child window
This parameter cannot be used with Ws_maximizebox, Ws_minimizebox


Ws_ex_controlparent = 0x00010000
The form itself contains a subwindow that participates in the Navigation of the dialog box. If this parameter is used, the dialog manager is in the child window of the form, and when the navigation is performed, such as pressing the TAB key, the arrow key.


Ws_ex_dlgmodalframe = 0x00000001
Create a window with a bilateral box that can be created with a title bar by using the ws_caption style.


ws_ex_layered = 0x00080000
Windows 2000/XP: Creates a layered window. Note that this cannot be used on child windows. Similarly, if the window has a CS_OWNDC, CS_CLASSDC style, this is not used.


Ws_ex_layoutrtl = 0x00400000
The Arabic and Hebrew versions of 98/me,2000/xp create a horizontal starting point in the right window. The farther left the horizontal coordinate value becomes larger.


Ws_ex_left = 0x00000000
Creates a window that has a general left-aligned property. This is the default


Ws_ex_leftscrollbar = 0x00004000
If the shell language is Hebrew, Arabic, or other reading order language, the vertical scroll bar will be on the left side of the client area. This parameter is ignored for other languages.


ws_ex_ltrreading = 0x00000000
The text in the form is arranged from left to right. This is the default.


Ws_ex_mdichild = 0x00000040
Creates a child window of a multi-document interface.


Ws_ex_noactivate = 0x08000000
Windows 2000/XP: A top-level window created with this parameter does not become a foreground window when the user clicks on him. The system does not place this window in the foreground when the user minimizes or closes the foreground window.
To activate such a window, use the SetActiveWindow or SetForegroundWindow function
This type of window does not appear on the taskbar by default. To force such a window to appear on the taskbar, use the Ws_ex_appwindow parameter.


Ws_ex_noinheritlayout = 0x00100000
Windows 2000/xp: A form created with this parameter does not pass his window layout to his child window


Ws_ex_noparentnotify = 0x00000004
Indicates that a window created using this parameter does not send a wm_parentnotify message to his parent window when the window is created or destroyed.


Ws_ex_overlappedwindow = (Ws_ex_windowedge | Ws_ex_clientedge)
Union of Ws_ex_clientedge and Ws_ex_windowedge styles


Ws_ex_palettewindow = (Ws_ex_windowedge | Ws_ex_toolwindow | Ws_ex_topmost)
Union of Ws_ex_windowedge, Ws_ex_toolwindow, and ws_ex_topmost styles.


Ws_ex_right = 0x00001000
The window has a general right-justified property. This depends on the class of the window. This style only has the Shell language Hebrew, Arabic, and other reading order language has influence, otherwise this style does not ignore
Using the Ws_ex_right style for a text label or edit box is the same as using the Ss_right or es_right effect. Using this style with buttons is the same as using Bs_right and Bs_rightbutton.


Ws_ex_rightscrollbar = 0x00000000
The vertical scroll bar appears to the right of the customer area. Default.


ws_ex_rtlreading = 0x00002000
If the shell language is Hebrew, Arabic, and other languages that support the arrangement, the form text will be read in the right-to-left reading order. This style is ignored for other languages.


Ws_ex_staticedge = 0x00020000
Create a window with a three-dimensional border to indicate that a project does not accept user input.


Ws_ex_toolwindow = 0x00000080
Create a tool window: that is, this window is used to make a floating toolbar. A tool window has a title bar that is shorter than the general title bar, and the system uses a small font in the title bar. As a tool window, it is not displayed on the toolbar. When the user uses ALT + The tab switch also does not appear in the dialog box. If a tool window has a system menu, his icon will not be displayed on the title bar. However, you can display the System menu by typing ALT + TAB or by right-clicking the title bar.


Ws_ex_topmost = 0x00000008
Indicates that the window created with this parameter will be placed in all top-level windows and parked at the top. Even if the window is not active. To add or remove him, use the SetWindowPos function.


Ws_ex_transparent = 0x00000020
The window created with this parameter will not be drawn until the window of his same thread is drawn. This window is transparent because the same thread window is drawn
To get rid of this restriction, activate transparency by using the SETWINDOWRGN function.


Ws_ex_windowedge = 0x00000100
Causes a window to have a raised border.

===============================================
Reference
Defined in Winuser.h:

/*
* Window Styles
*/
#define WS_OVERLAPPED 0x00000000l
#define WS_POPUP 0x80000000l
#define WS_CHILD 0x40000000l
#define Ws_minimize 0x20000000l
#define WS_VISIBLE 0x10000000l
#define WS_DISABLED 0x08000000l
#define Ws_clipsiblings 0x04000000l
#define Ws_clipchildren 0x02000000l
#define WS_MAXIMIZE 0x01000000l
#define WS_CAPTION 0x00c00000l/* ws_border | Ws_dlgframe * *
#define Ws_border 0x00800000l
#define WS_DLGFRAME 0x00400000l
#define Ws_vscroll 0x00200000l
#define WS_HSCROLL 0x00100000l
#define Ws_sysmenu 0x00080000l
#define WS_THICKFRAME 0x00040000l
#define Ws_group 0x00020000l
#define WS_TABSTOP 0x00010000l

#define Ws_minimizebox 0x00020000l
#define Ws_maximizebox 0x00010000l


#define WS_TILED ws_overlapped
#define Ws_iconic Ws_minimize
#define Ws_sizebox Ws_thickframe
#define Ws_tiledwindow Ws_overlappedwindow

/*
* Common Window Styles
*/
#define WS_OVERLAPPEDWINDOW (ws_overlapped | \
ws_caption | \
Ws_sysmenu | \
Ws_thickframe | \
Ws_minimizebox | \
Ws_maximizebox)

#define Ws_popupwindow (Ws_popup | \
Ws_border | \
Ws_sysmenu)

#define Ws_childwindow (Ws_child)

/*
* Extended Window Styles
*/
#define WS_EX_DLGMODALFRAME 0x00000001l
#define Ws_ex_noparentnotify 0x00000004l
#define WS_EX_TOPMOST 0x00000008l
#define Ws_ex_acceptfiles 0x00000010l
#define Ws_ex_transparent 0x00000020l
#if (WINVER >= 0x0400)
#define Ws_ex_mdichild 0x00000040l
#define Ws_ex_toolwindow 0x00000080l
#define Ws_ex_windowedge 0x00000100l
#define Ws_ex_clientedge 0x00000200l
#define WS_EX_CONTEXTHELP 0x00000400l

#endif/* WINVER >= 0x0400 */
#if (WINVER >= 0x0400)

#define Ws_ex_right 0x00001000l
#define WS_EX_LEFT 0x00000000l
#define Ws_ex_rtlreading 0x00002000l
#define Ws_ex_ltrreading 0x00000000l
#define Ws_ex_leftscrollbar 0x00004000l
#define Ws_ex_rightscrollbar 0x00000000l

#define Ws_ex_controlparent 0x00010000l
#define Ws_ex_staticedge 0x00020000l
#define Ws_ex_appwindow 0x00040000l

#define Ws_ex_overlappedwindow (Ws_ex_windowedge | Ws_ex_clientedge)
#define Ws_ex_palettewindow (Ws_ex_windowedge | Ws_ex_toolwindow | Ws_ex_topmost)

#endif/* WINVER >= 0x0400 */

#if (_win32_winnt >= 0x0500)
#define Ws_ex_layered 0x00080000

#endif/* _WIN32_WINNT >= 0x0500 */


#if (WINVER >= 0x0500)
#define WS_EX_NOINHERITLAYOUT 0x00100000l//Disable inheritence of mirroring by children
#define WS_EX_LAYOUTRTL 0x00400000l//right-to-left mirroring
#endif/* WINVER >= 0x0500 */

#if (_win32_winnt >= 0x0500)
#define ws_ex_composited 0x02000000l
#define Ws_ex_noactivate 0x08000000l
#endif/* _win32_winnt >= 0x0500 */

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.