本页列出了用于窗口的通用及扩展风格,同时还列出了用于控件的风格。这些风格能作为“风格”和/或“扩展风格”参数用于大部分的 GUI 函数中。要使用这些值必须使用 #include <GUIConstants.au3> 语句包含该文件到您的脚本中。
通用风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICreate 函数。 |
$WS_BORDER | 0x00800000 | 创建一个细边框的窗口。 |
$WS_POPUP | 0x80000000 | 创建一个弹出式窗口。此风格不能和 WS_CHILD 同时使用。 |
$WS_CAPTION | 0x00C00000 | 创建一个带有标题栏的窗口(包含 WS_BORDER 风格) |
$WS_CLIPCHILDREN | 0x02000000 | 当在父窗口内绘图时,排除子窗口区域。在创建父窗口时将使用此风格。 |
$WS_CLIPSIBLINGS | 0x04000000 | 使窗口排除子窗口之间的相对区域;也就是说,当某个特定的子窗口接受到 WM_PAINT 消息时,带有 WS_CLIPSIBLINGS 风格的窗口将别住所有重叠的子窗口超过区域的部分一起更新。如果没有使用 WS_CLIPSIBLINGS 并且子窗口重叠,当在一个子窗体的客户区绘图时,可能会绘图到邻近的子窗体的客户区。只与 WS_CHILD 一起使用。 |
$WS_DISABLED | 0x08000000 | 创建一个初始状态为不可用的窗口。 |
$WS_DLGFRAME | 0x00400000 | 创建一个带有对话框边框的窗口。 |
$WS_HSCROLL | 0x00100000 | 创建一个带有水平滚动条的窗口。 |
$WS_MAXIMIZE | 0x01000000 | 创建一个初始状态为最大化的窗口。 |
$WS_MAXIMIZEBOX | 0x00010000 | 创建一个带有最大化按钮的窗口。不能和 WS_EX_CONTEXTHELP 同时使用。而且必须添加 WS_SYSMENU 风格。 |
$WS_MINIMIZE | 0x20000000 | 创建一个初始状态为最小化的窗口。 |
$WS_MINIMIZEBOX | 0x00020000 | 创建一个带有最小化按钮的窗口。不能和 WS_EX_CONTEXTHELP 同时使用。而且必须添加 WS_SYSMENU 风格。 |
$WS_OVERLAPPED | 0x00000000 | 创建一个层叠的窗口。层叠的窗口带有标题栏和边框。和 WS_TILED 风格相同。 |
$WS_OVERLAPPEDWINDOW | 0x00CF0000 | 创建一个带有 WS_OVERLAPPED、WS_CAPTION、WS_SYSMENU、WS_THICKFRAME、WS_MINIMIZEBOX 以及WS_MAXIMIZEBOX 等风格的层叠窗口。和 WS_TILEDWINDOW 风格相同。 |
$WS_POPUPWINDOW | 0x80880000 | 创建一个带有 WS_BORDER、WS_POPUP 以及 WS_SYSMENU 风格的弹出式窗口。为使窗口的菜单可见必须添加 WS_CAPTION 和 WS_POPUPWINDOW 风格。 |
$WS_SIZEBOX | 0x00040000 | 创建一个可调整边框的窗口。和 WS_THICKFRAME 风格相同。 |
$WS_SYSMENU | 0x00080000 | 创建一个标题栏上有窗口菜单的窗口。必须指定 WS_CAPTION 风格。 |
$WS_THICKFRAME | 0x00040000 | 创建一个可调整边框的窗口。和 WS_SIZEBOX 风格相同。 |
$WS_VSCROLL | 0x00200000 | 创建一个带有垂直滚动条的窗口。 |
$WS_VISIBLE | 0x10000000 | 创建一个初始状态为可见的窗口。 |
$WS_CHILD | 0x40000000 | 创建一个子窗口。带有此风格的窗口不能带有菜单栏。此风格不能和 WS_POPUP 风格同时使用。 |
$WS_GROUP | 0x00020000 | 指定控件组的第一个控件。控件组由第一个控件和其后定义的所有控件组成,一直到下一个控件带有 WS_GROUP 风格为止。 |
$WS_TABSTOP | 0x00010000 | 使控件具有 tabstop,使用户能按下 Tab 键在对话框的各个(具有 tabstop 的)控件间切换(以选择控件)。 |
$DS_MODALFRAME | 0x00000080 | 创建一个带有模式对话框框架的窗口,在指定了 WS_CAPTION 和 WS_SYSMENU 风格后还可以让窗口带有标题栏和窗口菜单。 |
$DS_SETFOREGROUND | 0x00000200 | 此风格对模式对话框比较有用,它能使用户立即注意到此对话框,而不管它的主属窗口是否活动(当前)窗口。 |
$DS_CONTEXTHELP | 0x00002000 | 使对话框的标题栏上显示一个问号按钮。此风格不能和 WS_MAXIMIZEBOX 或 WS_MINIMIZEBOX 风格同时使用。和WS_EX_CONTEXTHELP 扩展风格相同。 |
通用扩展风格 | 值 | 说明 |
---|
$WS_EX_ACCEPTFILES | 0x00000010 | 允许(用户)通过拖放让被创建的GUI窗口中的编辑框/输入控件接受文件名。该控件也必须具有 $GUI_ACCEPTFILES 状态(由 GUICtrlSetState 设置)。 |
$WS_EX_APPWINDOW | 0x00040000 | 当窗口可见时将一个顶层窗口放到任务栏上。 |
$WS_EX_CLIENTEDGE | 0x00000200 | 使窗口带有凹陷边框。 |
$WS_EX_CONTEXTHELP | 0x00000400 | 使窗口标题栏带有一个问号标志,不能和 WS_MAXIMIZEBOX 或 WS_MINIMIZEBOX 同时使用。 |
$WS_EX_DLGMODALFRAME | 0x00000001 | 创建一个带有双层边框的窗口;对这种窗口还可以在创建时通过在风格参数中指定 WS_CAPTION 风格使其带有标题栏(可选)。 |
$WS_EX_OVERLAPPEDWINDOW | 0x00000300 | 相当于 WS_EX_CLIENTEDGE 和 WS_EX_WINDOWEDGE 风格的组合。 |
$WS_EX_STATICEDGE | 0x00020000 | 创建一个带有三维边框风格的窗口,一般用于不接受用户输入的项目。 |
$WS_EX_TOPMOST | 0x00000008 | 使带有此风格的窗口放置在所有非顶层窗口之上,而且即使在该窗口失去激活状态时还总是保持在它们之上。 |
$WS_EX_TRANSPARENT | 0x00000020 | 该窗口将透明显示,因为在它下方的同属窗口已被重绘。 |
$WS_EX_TOOLWINDOW | 0x00000080 | 创建一个工具窗口;也即,一个一般用作浮动工具栏的窗口。工具窗口的标题栏比普通标题栏要短,而且它的窗口标题使用更小的字体。工具窗口在任务栏上不显示按钮,用户按下热键 Alt+Tab 后在弹出的对话框中也不会显示它的图标。如果一个工具窗口拥有系统菜单,那么它的图标不会在其标题栏上显示出来。不过,您可以按下热键 Alt+空格 来显示它的系统菜单。 |
$WS_EX_WINDOWEDGE | 0x00000100 | 使窗口带有凸起边框。 |
$WS_EX_LAYERED | 0x00080000 | 创建一个分层的窗口。注意,此风格不能用于子窗口。 |
$LVS_EX_FULLROWSELECT | 0x00000020 | 选中某项时该项及其所有子项将被高亮显示。 |
复选框(Checkbox)风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateCheckbox 函数。 |
$BS_3STATE | 0x0005 | Creates a check box in which the box can be unavailable as well as selected or cleared. Use the unavailable state to show that the state of the check box is not determined. |
$BS_AUTO3STATE | 0x0006 | Creates a three-state check box in which the state cycles through selected, unavailable, and cleared each time the user selects the check box. |
$BS_AUTOCHECKBOX | 0x0003 | Creates a check box in which the check state switches between selected and cleared each time the user selects the check box. |
$BS_CHECKBOX | 0x0002 | Creates a small, empty check box with a label displayed to the right of it. To display the text to the left of the check box, combine this flag with the BS_RIGHTBUTTON style. |
$BS_LEFT | 0x0100 | Left-aligns the text in the button rectangle on the right side of the check box. |
$BS_PUSHLIKE | 0x1000 | Makes a button (such as a check box, three-state check box, or radio button) look and act like a push button. The button looks raised when it isn't pushed or checked, and sunken when it is pushed or checked. |
$BS_RIGHT | 0x0200 | Right-aligns text in the button rectangle on the right side of the check box. |
$BS_RIGHTBUTTON | 0x0020 | Positions a check box square on the right side of the button rectangle. |
按钮(Button)风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateButton, GUICtrlCreateCheckbox, GUICtrlCreateRadio 函数。. |
$BS_BOTTOM | 0x0800 | Places the text at the bottom of the button rectangle. |
$BS_CENTER | 0x0300 | Centers the text horizontally in the button rectangle. |
$BS_DEFPUSHBUTTON | 0x0001 | Creates a push button with a heavy black border. If the button is in a dialog box, the user can select the button by pressing the ENTER key, even when the button does not have the input focus. This style is useful for enabling the user to quickly select the most likely option, or default. |
$BS_MULTILINE | 0x2000 | Wraps the button text to multiple lines if the text string is too long to fit on a single line in the button rectangle. |
$BS_TOP | 0x0400 | Places text at the top of the button rectangle. |
$BS_VCENTER | 0x0C00 | Vertically centers text in the button rectangle. |
$BS_ICON | 0x0040 | Specifies that the button displays an icon. |
$BS_BITMAP | 0x0080 | Specifies that the button displays an bitmap. |
$BS_FLAT | 0x8000 | Specifies that the button is two-dimensional; it does not use the default shading to create a 3-D image. |
Combo 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateCombo 函数。 |
$CBS_AUTOHSCROLL | 0x0040 | Automatically scrolls the text in an edit control to the right when the user types a character at the end of the line. If this style is not set, only text that fits within the rectangular boundary is enabled. |
$CBS_DISABLENOSCROLL | 0x0800 | Shows a disabled vertical scroll bar in the list box when the box does not contain enough items to scroll. Without this style, the scroll bar is hidden when the list box does not contain enough items. |
$CBS_DROPDOWN | 0x0002 | Displays only the edit control by default. The user can display the list box by selecting an icon next to the edit control. |
$CBS_DROPDOWNLIST | 0x0003 | Displays a static text field that displays the current selection in the list box. |
$CBS_LOWERCASE | 0x4000 | Converts to lowercase any uppercase characters that are typed into the edit control of a combo box. |
$CBS_NOINTEGRALHEIGHT | 0x0400 | Specifies that the combo box will be exactly the size specified by the application when it created the combo box. Usually, Windows CE sizes a combo box so that it does not display partial items. |
$CBS_OEMCONVERT | 0x0080 | Converts text typed in the combo box edit control from the Windows CE character set to the OEM character set and then back to the Windows CE set. This style is most useful for combo boxes that contain file names. It applies only to combo boxes created with the CBS_DROPDOWN style. |
$CBS_SIMPLE | 0x0001 | Displays the list box at all times. The current selection in the list box is displayed in the edit control. |
$CBS_SORT | 0x0100 | Sorts strings that are typed into the list box. |
$CBS_UPPERCASE | 0x2000 | Converts to uppercase any lowercase characters that are typed into the edit control of a combo box. |
List 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateList 函数。 |
$LBS_DISABLENOSCROLL | 0x1000 | Shows a disabled vertical scroll bar for the list box when the box does not contain enough items to scroll. If you do not specify this style, the scroll bar is hidden when the list box does not contain enough items. |
$LBS_NOINTEGRALHEIGHT | 0x0100 | Specifies that the list box will be exactly the size specified by the application when it created the list box. |
$LBS_NOSEL | 0x4000 | Specifies that the user can view list box strings but cannot select them. |
$LBS_NOTIFY | 0x0001 | Notifies the parent window when the user taps or double-taps a string in the list box. |
$LBS_SORT | 0x0002 | Sorts strings in the list box alphabetically. |
$LBS_STANDARD | 0xA00003 | Sorts strings in the list box alphabetically. The parent window receives an input message when the user taps or double-taps a string. The list box has borders on all sides. (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER) |
$LBS_USETABSTOPS | 0x0080 | Enables a list box to recognize and expand tab characters when drawing its strings. The default tab positions are 32 dialog box units. A dialog box unit is equal to one-fourth of the current dialog box base-width unit. |
Edit 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateEdit 函数。 |
$ES_AUTOHSCROLL | 0x0080 | Automatically scrolls text to the right by 10 characters when the user types a character at the end of the line. When the user presses the ENTER key, the control scrolls all text back to the zero position. |
$ES_AUTOVSCROLL | 0x0040 | Scrolls text up one page when the user presses the ENTER key on the last line. |
$ES_CENTER | 0x0001 | Centers text in a multiline edit control. |
$ES_LOWERCASE | 0x0010 | Converts all characters to lowercase as they are typed into the edit control. |
$ES_NOHIDESEL | 0x0100 | Negates the default behavior for an edit control. The default behavior hides the selection when the control loses the input focus and inverts the selection when the control receives the input focus. If you specify ES_NOHIDESEL, the selected text is inverted, even if the control does not have the focus. |
$ES_NUMBER | 0x2000 | Accepts into the edit control only digits to be typed. |
$ES_OEMCONVERT | 0x0400 | This style is most useful for edit controls that contain file names. |
$ES_MULTILINE | 0x0004 | Designates a multiline edit control. The 默认值为 a single-line edit control. |
$ES_PASSWORD | 0x0020 | Displays an asterisk (*) for each character that is typed into the edit control. |
$ES_READONLY | 0x0800 | Prevents the user from typing or editing text in the edit control. |
$ES_RIGHT | 0x0002 | Right-aligns text in a multiline edit control. |
$ES_UPPERCASE | 0x0008 | Converts all characters to uppercase as they are typed into the edit control. |
$ES_WANTRETURN | 0x1000 | Specifies that a carriage return be inserted when the user presses the ENTER key while typing text into a multiline edit control in a dialog box. If you do not specify this style, pressing the ENTER key has the same effect as pressing the dialog box's default push button. This style has no effect on a single-line edit control. |
Up-down 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateUpdown 函数。 |
$UDS_ALIGNLEFT | 0x08 | Positions the up-down control next to the left edge of the buddy window. The buddy window is moved to the right and its width is decreased to accommodate the width of the up-down control. |
$UDS_ALIGNRIGHT | 0x04 | Positions the up-down control next to the right edge of the buddy window. The width of the buddy window is decreased to accommodate the width of the up-down control. |
$UDS_ARROWKEYS | 0x20 | Causes the up-down control to process the UP ARROW and DOWN ARROW keys on the keyboard. |
$UDS_HORZ | 0x40 | Causes the up-down control's arrows to point left and right instead of up and down. |
$UDS_NOTHOUSANDS | 0x80 | Prevents insertion of a thousands separator between every three decimal positions. |
$UDS_WRAP | 0x01 | Causes the position to wrap if it is incremented or decremented beyond the end or beginning of the range. |
Label/Static 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateLabel, GUICtrlCreateIcon, GUICtrlCreatePic 函数。. |
$SS_BLACKFRAME | 0x07 | Specifies a box with a frame drawn in the same color as the window frames. This color is black in the default color scheme. |
$SS_BLACKRECT | 0x04 | Specifies a rectangle filled with the current window frame color. This color is black in the default color scheme. |
$SS_CENTER | 0x01 | Specifies a simple rectangle and centers the error value text in the rectangle. The control automatically wraps words that extend past the end of a line to the beginning of the next centered line. |
$SS_CENTERIMAGE | 0x0200 | Specifies that the midpoint of a static control with the SS_BITMAP style will remain fixed when you resize the control. The four sides are adjusted to accommodate a new bitmap. If the bitmap is smaller than the control's client area, the rest of the client area is filled with the color of the pixel in the upper-left corner of the bitmap. It can be used with static control having only one line of text. |
$SS_ETCHEDFRAME | 0x12 | Draws the frame of the static control using the EDGE_ETCHED edge style. |
$SS_ETCHEDHORZ | 0x10 | Draws the top and bottom edges of the static control using the EDGE_ETCHED edge style. |
$SS_ETCHEDVERT | 0x11 | Draws the left and right edges of the static control using the EDGE_ETCHED edge style. |
$SS_GRAYFRAME | 0x08 | Specifies a box with a frame drawn with the same color as the screen background (desktop). This color is gray in the default color scheme |
$SS_GRAYRECT | 0x05 | Specifies a rectangle filled with the current screen background color. This color is gray in the default color scheme. |
$SS_LEFT | 0x0000 | Specifies a simple rectangle and left-aligns the text in the rectangle. The text is formatted before it is displayed. Words that extend past the end of a line are automatically wrapped to the beginning of the next left-aligned line. Words that are longer than the width of the control are truncated. |
$SS_LEFTNOWORDWRAP | 0x0C | Specifies a rectangle and left-aligns the text in the rectangle. Tabs are expanded, but words are not wrapped. Text that extends past the end of a line is clipped. |
$SS_NOPREFIX | 0x80 | Prevents interpretation of any ampersand (&) characters in the control's text as accelerator prefix characters. An application can combine SS_NOPREFIX with other styles by using the bitwise OR (|) operator. This can be useful when file names or other strings that might contain an ampersand (&) must be displayed within a static control in a dialog box. |
$SS_NOTIFY | 0x0100 | Sends the parent window the STN_CLICKED notification when the user clicks the control. |
$SS_RIGHT | 0x0002 | Specifies a rectangle and right-aligns the specified text in the rectangle. |
$SS_RIGHTJUST | 0x0400 | Specifies that the lower right corner of a static control with the SS_BITMAP or SS_ICON style is to remain fixed when the control is resized. Only the top and left sides are adjusted to accommodate a new bitmap or icon. |
$SS_SIMPLE | 0x0B | Specifies a simple rectangle and displays a single line of left-aligned text in the rectangle. The text line cannot be shortened or altered in any way. Also, if the control is disabled, the control does not gray its text. |
$SS_SUNKEN | 0x1000 | Draws a half-sunken border around a static control. |
$SS_WHITEFRAME | 0x09 | Specifies a box with a frame drawn with the same color as the window background. This color is white in the default color scheme. |
$SS_WHITERECT | 0x06 | Specifies a rectangle filled with the current window background color. This color is white in the default color scheme. |
Tab 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateTab 函数。 |
$TCS_SCROLLOPPOSITE | 0x0001 | Unneeded tabs scroll to the opposite side of the control when a tab is selected. |
$TCS_BOTTOM | 0x0002 | Tabs appear at the bottom of the control. |
$TCS_RIGHT | 0x0002 | Tabs appear vertically on the right side of controls that use the TCS_VERTICAL style. This value equals TCS_BOTTOM. |
$TCS_MULTISELECT | 0x0004 | Multiple tabs can be selected by holding down CTRL when clicking. This style must be used with the TCS_BUTTONS style. |
$TCS_FLATBUTTONS | 0x0008 | Selected tabs appear as being indented into the background while other tabs appear as being on the same plane as the background. This style only affects tab controls with the TCS_BUTTONS style. |
$TCS_FORCEICONLEFT | 0x0010 | Icons are aligned with the left edge of each fixed-width tab. This style can only be used with the TCS_FIXEDWIDTH style. |
$TCS_FORCELABELLEFT | 0x0020 | Labels are aligned with the left edge of each fixed-width tab; that is, the label is displayed immediately to the right of the icon instead of being centered. This style can only be used with the TCS_FIXEDWIDTH style, and it implies the TCS_FORCEICONLEFT style. |
$TCS_HOTTRACK | 0x0040 | Items under the pointer are automatically highlighted |
$TCS_VERTICAL | 0x0080 | Tabs appear at the left side of the control, with tab text displayed vertically. This style is valid only when used with the TCS_MULTILINE style. To make tabs appear on the right side of the control, also use the TCS_RIGHT style. |
$TCS_TABS | 0x0000 | Tabs appear as tabs, and a border is drawn around the display area. This style is the default. |
$TCS_BUTTONS | 0x0100 | Tabs appear as buttons, and no border is drawn around the display area. |
$TCS_SINGLELINE | 0x0000 | Only one row of tabs is displayed. The user can scroll to see more tabs, if necessary. This style is the default. |
$TCS_MULTILINE | 0x0200 | Multiple rows of tabs are displayed, if necessary, so all tabs are visible at once. |
$TCS_RIGHTJUSTIFY | 0x0000 | The width of each tab is increased, if necessary, so that each row of tabs fills the entire width of the tab control. This window style is ignored unless the TCS_MULTILINE style is also specified. |
$TCS_FIXEDWIDTH | 0x0400 | All tabs are the same width. This style cannot be combined with the TCS_RIGHTJUSTIFY style. |
$TCS_RAGGEDRIGHT | 0x0800 | Rows of tabs will not be stretched to fill the entire width of the control. This style is the default. |
$TCS_FOCUSONBUTTONDOWN | 0x1000 | The tab control receives the input focus when clicked. |
$TCS_OWNERDRAWFIXED | 0x2000 | The parent window is responsible for drawing tabs. |
$TCS_TOOLTIPS | 0x4000 | The tab control has a tooltip control associated with it. |
$TCS_FOCUSNEVER | 0x8000 | The tab control does not receive the input focus when clicked. |
Date 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateDate 函数。 |
$DTS_UPDOWN | 0x01 | Places an up-down control to the right of a DTP control to modify time values. This style can be used instead of the drop-down month calendar, which is the default style. |
$DTS_SHOWNONE | 0x02 | Enables the control to accept "no date" as a valid selection state. |
$DTS_LONGDATEFORMAT | 0x04 | Displays the date in long format. The default format string for this style is defined by LOCALE_SLONGDATEFORMAT, which produces output like "Friday, April 19, 1998." |
$DTS_TIMEFORMAT | 0x09 | Displays the time. The default format string for this style is defined by LOCALE_STIMEFORMAT, which produces output like "5:31:42 PM." |
$DTS_RIGHTALIGN | 0x20 | The drop-down month calendar will be right-aligned with the control instead of left-aligned, which is the default. |
$DTS_SHORTDATEFORMAT | 0x00 | Displays the date in short format. The default format string for this style is defined by LOCALE_SSHORTDATE, which produces output like "4/19/96". |
TreeView 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateTreeView 函数。 |
$TVS_HASBUTTONS | 0x0001 | Displays plus (+) and minus (-) buttons next to parent items. The user clicks the buttons to expand or collapse a parent item's list of child items. To include buttons with items at the root of the tree view, TVS_LINESATROOT must also be specified. |
$TVS_HASLINES | 0x0002 | Uses lines to show the hierarchy of items. |
$TVS_LINESATROOT | 0x0004 | Uses lines to link items at the root of the tree view control. This value is ignored if TVS_HASLINES is not also specified. |
$TVS_DISABLEDRAGDROP | 0x0010 | Prevents the tree view control from sending TVN_BEGINDRAG notification messages. |
$TVS_SHOWSELALWAYS | 0x0020 | Causes a selected item to remain selected when the tree view control loses focus. |
$TVS_RTLREADING | 0x0040 | Normal windows display text left-to-right (LTR). Windows can be mirrored to display languages such as Hebrew or Arabic that read right-to-left (RTL). Normally, tree view text will be displayed in same direction as the the text in its parent window. If TVS_RTLREADING is set, tree view text will read in the opposite direction from the text in the parent window. |
$TVS_NOTOOLTIPS | 0x0080 | The tree view control does not support tooltips. |
$TVS_CHECKBOXES | 0x0100 | |
$TVS_TRACKSELECT | 0x0200 | Enables hot tracking in a tree view control. |
$TVS_SINGLEEXPAND | 0x0400 | When this style is enabled, changing the selection in the tree view will automatically cause the item being selected to expand and the item being unselected to collapse. If the mouse is used to single-click the selected item and that item is closed, it will be expanded. If the user holds the CTRL key down while selecting an item, the item being unselected will not be collapsed. |
$TVS_FULLROWSELECT | 0x1000 | Enables full-row selection in the tree view. The entire row of the selected item is highlighted, and clicking anywhere on an item's row will cause it to be selected. This style cannot be used in conjunction with the TVS_HASLINES style. |
$TVS_NOSCROLL | 0x2000 | Disables horizontal scrolling in the control. The control will not display any horizontal scroll bars. |
$TVS_NONEVENHEIGHT | 0x4000 | The height of the items can be set to an odd height with the TVM_SETITEMHEIGHT message. By default, the height of items must be an even value. |
Slider 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateSlider 函数。 |
$TBS_AUTOTICKS | 0x0001 | Adds tick marks when you set the range on the trackbar by using the TBM_SETRANGE message. |
$TBS_BOTH | 0x0008 | Places ticks on both sides of the trackbar. |
$TBS_BOTTOM | 0x0000 | Places ticks on the bottom of a horizontal trackbar. |
$TBS_HORZ | 0x0000 | Specifies a horizontal trackbar. This is the default. |
$TBS_VERT | 0x0002 | Places ticks on the left side of a vertical trackbar. |
$TBS_NOTHUMB | 0x0080 | Specifies that the trackbar has no slider. |
$TBS_NOTICKS | 0x0010 | Specifies that no ticks are placed on the trackbar. |
$TBS_LEFT | 0x0004 | Places ticks on the left side of a vertical trackbar. |
$TBS_RIGHT | 0x0000 | Places ticks on the right side of a vertical trackbar. |
$TBS_TOP | 0x0004 | Places ticks on the top of a horizontal trackbar. |
ListView 风格 | 值 | 说明 |
---|
默认/强制性风格 | | 请查看 GUICtrlCreateListView 函数。 |
$LVS_REPORT | 0x0001 | This style specifies report view. |
$LVS_EDITLABELS | 0x0200 | Item text can be edited in place. |
$LVS_NOCOLUMNHEADER | 0x4000 | Column headers are not displayed in report view. By default, columns have headers in report view. |
$LVS_NOSORTHEADER | 0x8000 | Column headers do not work like buttons. This style can be used if clicking a column header in report view does not carry out an action, such as sorting. |
$LVS_SINGLESEL | 0x0004 | Only one item at a time can be selected. |
$LVS_SHOWSELALWAYS | 0x0008 | The selection, if any, is always shown, even if the control does not have the focus. |
发布评论