窗体扩展样式常量

dwExStyle
[in] Specifies the extended window style of the window being created. This parameter can be one or more of the following values.
WS_EX_ACCEPTFILES
Specifies that a window created with this style accepts drag-drop files.
WS_EX_APPWINDOW
Forces a top-level window onto the taskbar when the window is visible.
WS_EX_CLIENTEDGE
Specifies that a window has a border with a sunken edge.
WS_EX_COMPOSITED
Windows XP: Paints all descendants of a window in bottom-to-top painting
order using double-buffering. For more information, see Remarks. This cannot be
used if the window has a class style of either CS_OWNDC or CS_CLASSDC.
WS_EX_CONTEXTHELP
Includes a question mark in the title bar of the window. When the user clicks
the question mark, the cursor changes to a question mark with a pointer. If
the user then clicks a child window, the child receives a WM_HELP message.
The child window should pass the message to the parent window procedure, which
should call the WinHelp function using the HELP_WM_HELP command. The Help application
displays a pop-up window that typically contains help for the child window.

WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX styles.

WS_EX_CONTROLPARENT
The window itself contains child windows that should take part in dialog box navigation.
If this style is specified, the dialog manager recurses into children of this window when
performing navigation operations such as handling the TAB key, an arrow key, or a keyboard mnemonic.
WS_EX_DLGMODALFRAME
Creates a window that has a double border; the window can, optionally, be created with a title
bar by specifying the WS_CAPTION style in the dwStyle parameter.
WS_EX_LAYERED
Windows 2000/XP: Creates a layered window. Note that this cannot be used for child windows.
Also, this cannot be used if the window has a class style of either CS_OWNDC or CS_CLASSDC.
WS_EX_LAYOUTRTL
Arabic and Hebrew versions of Windows 98/Me, Windows 2000/XP: Creates a window whose horizontal
origin is on the right edge. Increasing horizontal values advance to the left.
WS_EX_LEFT
Creates a window that has generic left-aligned properties. This is the default.
WS_EX_LEFTSCROLLBAR
If the shell language is Hebrew, Arabic, or another language that supports reading order alignment,
the vertical scroll bar (if present) is to the left of the client area. For other languages, the style is ignored.
WS_EX_LTRREADING
The window text is displayed using left-to-right reading-order properties. This is the default.
WS_EX_MDICHILD
Creates a multiple-document interface (MDI) child window.
WS_EX_NOACTIVATE
Windows 2000/XP: A top-level window created with this style does not become the foreground window when the user clicks it. The system does not bring this window to the foreground when the user minimizes or closes the foreground window.
To activate the window, use the SetActiveWindow or SetForegroundWindow function.

The window does not appear on the taskbar by default. To force the window to appear on the taskbar, use the WS_EX_APPWINDOW style.

WS_EX_NOINHERITLAYOUT
Windows 2000/XP: A window created with this style does not pass its window layout to its child windows.
WS_EX_NOPARENTNOTIFY
Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed.
WS_EX_OVERLAPPEDWINDOW
Combines the WS_EX_CLIENTEDGE and WS_EX_WINDOWEDGE styles.
WS_EX_PALETTEWINDOW
Combines the WS_EX_WINDOWEDGE, WS_EX_TOOLWINDOW, and WS_EX_TOPMOST styles.
WS_EX_RIGHT
The window has generic "right-aligned" properties. This depends on the window class. This style has an effect only if the shell language is Hebrew, Arabic, or another language that supports reading-order alignment; otherwise, the style is ignored.
Using the WS_EX_RIGHT style for static or edit controls has the same effect as using the SS_RIGHT or ES_RIGHT style, respectively. Using this style with button controls has the same effect as using BS_RIGHT and BS_RIGHTBUTTON styles.

WS_EX_RIGHTSCROLLBAR
Vertical scroll bar (if present) is to the right of the client area. This is the default.
WS_EX_RTLREADING
If the shell language is Hebrew, Arabic, or another language that supports reading-order alignment, the window text is displayed using right-to-left reading-order properties. For other languages, the style is ignored.
WS_EX_STATICEDGE
Creates a window with a three-dimensional border style intended to be used for items that do not accept user input.
WS_EX_TOOLWINDOW
Creates a tool window; that is, a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing ALT+SPACE.
WS_EX_TOPMOST
Specifies that a window created with this style should be placed above all non-topmost windows and should stay above them, even when the window is deactivated. To add or remove this style, use the SetWindowPos function.
WS_EX_TRANSPARENT
Specifies that a window created with this style should not be painted until siblings beneath the window (that were created by the same thread) have been painted. The window appears transparent because the bits of underlying sibling windows have already been painted.

To achieve transparency without these restrictions, use the SetWindowRgn function.

WS_EX_WINDOWEDGE
Specifies that a window has a border with a raised edge.

时间: 2024-08-05 06:30:51

窗体扩展样式常量的相关文章

窗体的扩展样式和其值

窗体 扩展样式 分格WS_EX_ACCEPTFILES = 0x00000010指明了一个已创建视窗具有拖拽文件功能 WS_EX_APPWINDOW = 0x00040000强制一个可见的顶级视窗到工具栏上 WS_EX_CLIENTEDGE = 0x00000200使一个视窗具有凹陷边框 WS_EX_COMPOSITED = 0x02000000Windows XP:将一个窗体的所有子窗口使用双缓冲按照从低到高方式绘制出来,参阅remark项.如果这个视窗已经使用经典样式中的下列值CS_OWND

Eclipse 扩展点常量ID

eclipse 扩展点常量ID 列表如下: Name    ID ------------------------------------------------- Category File    org.eclipse.ui.category.file ------------------------------------------------- New        org.eclipse.ui.newWizard Close        org.eclipse.ui.file.cl

扩展样式表语言-XSL

XSL 指扩展样式表语言(EXtensible Stylesheet Language), 它是一个 XML 文档的样式表语言.XSLT 指 XSL 转换.......XSL 语言它起始于 XSL,结束于 XSLT.XPath 以及 XSL-FO.起始于 XSLXSL 指扩展样式表语言(EXtensible Stylesheet Language).http:/ /www.iis7.com/万维网联盟(W3C)开始发展 XSL 的原因是:存在着对于基于 XML 的样式表语言的需求.CSS = H

窗体的扩展样式GWL_EXSTYLE用于SetWindowLong

SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) or WS_EX_TRANSPARENT or WS_EX_LAYERED ); WS_EX_ACCEPTFILES = 0x00000010 指明了一个已创建视窗具有拖拽文件功能 WS_EX_APPWINDOW = 0x00040000 强制一个可见的顶级视窗到工具栏上 WS_EX_CLIENTEDGE = 0x00000200 使一个视窗具有凹陷边框 W

窗体样式常量

Window Styles WS_BORDER Creates a window that has a thin-line border. WS_CAPTION Creates a window that has a title bar (includes the WS_BORDER style). WS_CHILD Creates a child window. A window with this style cannot have a menu bar. This style cannot

php扩展开发-常量

//常量在内核中的结构 typedef struct _zend_constant { zval value; int flags; char *name; uint name_len; int module_number; } zend_constant; //常量注册的宏定义#define REGISTER_NULL_CONSTANT(name, flags) zend_register_null_constant((name), sizeof(name), (flags), module_

Winform自定义窗体样式,实现标题栏可灵活自定义

最近在编写C/S结构应用程序时,感觉窗体的标题栏样式太死板了,标题文字不能更改大小.颜色.字体等,按钮不能隐藏等问题,在网上也查找了许多相关的资料,没有找到合适的解决方案,发现许多人也在寻求这个问题,最后我决定自己研究动手画一个标题栏出来,经过今天一天的研究与编写,终于完成全部功能,现公布一下我的设计思路. 一.去掉Form类自带的标题栏                          要去掉自带的标题栏有两种方法,第一方法是直接将FormBorderStyle设为 System.Window

Android自定义组件之日历控件-精美日历实现(内容、样式可扩展)

需求 我们知道,Android系统本身有自带的日历控件,网络上也有很多开源的日历控件资源,但是这些日历控件往往样式较单一,API较多,不易于在实际项目中扩展并实现出符合具体样式风格的,内容可定制的效果.本文通过自定义日历控件,实现了在内容和样式上可高度扩展的精美日历demo,有需要的Android应用开发人员可迅速移植并按需扩展实现. 在某个应用中,需要查询用户的历史考勤记录,根据实际考勤数据在日历中标记出不同的状态(如正常出勤.请假.迟到等),并在页面中显示相应的说明文字. 效果 实现的效果如

【Asp.net入门09】第一个Asp.net应用程序-创建窗体并设置其样式

本节内容: 添加一个aspx窗体并设计窗体内容 为aspx窗体添加样式 前面我们为PartyInvites应用程序项目添加了两个c#文件:GuestResponse.cs和ResponseRepository.cs文件.这两个文件里面的代码一个是用来描述数据的GuestResponse类,一个是用来进行数据读写的ResponseRepository类.这两个类都不是用户直接访问的页面.下面我们就要开始设计一个与用户交互的页面,也就是我们通常所理解的网页. 我们接下来的任务是创建创建一个包含晚会信