xtd 0.2.0
Loading...
Searching...
No Matches
list box styles

Definition

list box styles definitions.

Warning
Internal use only

Variables

constexpr size_t LBS_NOTIFY
 Causes the list box to send a notification code to the parent window whenever the user clicks a list box item (LBN_SELCHANGE), double-clicks an item (LBN_DBLCLK), or cancels the selection (LBN_SELCANCEL).
 
constexpr size_t LBS_SORT
 Sorts strings in the list box alphabetically.
 
constexpr size_t LBS_NOREDRAW
 Specifies that the list box's appearance is not updated when changes are made.
 
constexpr size_t LBS_MULTIPLESEL
 Turns string selection on or off each time the user clicks or double-clicks a string in the list box. The user can select any number of strings.
 
constexpr size_t LBS_OWNERDRAWFIXED
 Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are the same height. The owner window receives a WM_MEASUREITEM message when the list box is created and a WM_DRAWITEM message when a visual aspect of the list box has changed.
 
constexpr size_t LBS_OWNERDRAWVARIABLE
 Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are variable in height. The owner window receives a WM_MEASUREITEM message for each item in the box when the list box is created and a WM_DRAWITEM message when a visual aspect of the list box has changed.
 
constexpr size_t LBS_HASSTRINGS
 Specifies that a list box contains items consisting of strings. The list box maintains the memory and addresses for the strings so that the application can use the LB_GETTEXT message to retrieve the text for a particular item. By default, all list boxes except owner-drawn list boxes have this style. You can create an owner-drawn list box either with or without this style.
 
constexpr size_t LBS_USETABSTOPS
 Enables a list box to recognize and expand tab characters when drawing its strings. You can use the LB_SETTABSTOPS message to specify tab stop positions. The default tab positions are 32 dialog template units apart. Dialog template units are the device-independent units used in dialog box templates. To convert measurements from dialog template units to screen units (pixels), use the MapDialogRect function.
 
constexpr size_t LBS_NOINTEGRALHEIGHT
 Specifies that the size of the list box is exactly the size specified by the application when it created the list box. Normally, the system sizes a list box so that the list box does not display partial items.
 
constexpr size_t LBS_MULTICOLUMN
 Specifies a multi-column list box that is scrolled horizontally. The list box automatically calculates the width of the columns, or an application can set the width by using the LB_SETCOLUMNWIDTH message. If a list box has the LBS_OWNERDRAWFIXED style, an application can set the width when the list box sends the WM_MEASUREITEM message.
 
constexpr size_t LBS_WANTKEYBOARDINPUT
 Specifies that the owner of the list box receives WM_VKEYTOITEM messages whenever the user presses a key and the list box has the input focus. This enables an application to perform special processing on the keyboard input.
 
constexpr size_t LBS_EXTENDEDSEL
 Allows multiple items to be selected by using the SHIFT key and the mouse or special key combinations.
 
constexpr size_t LBS_DISABLENOSCROLL
 Shows a disabled horizontal or vertical scroll bar when the list 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. This style must be used with the WS_VSCROLL or WS_HSCROLL style.
 
constexpr size_t LBS_NODATA
 Specifies a no-data list box. Specify this style when the count of items in the list box will exceed one thousand. A no-data list box must also have the LBS_OWNERDRAWFIXED style, but must not have the LBS_SORT or LBS_HASSTRINGS style.
 
constexpr size_t LBS_NOSEL
 Specifies that the list box contains items that can be viewed but not selected.
 
constexpr size_t LBS_COMBOBOX
 Notifies a list box that it is part of a combo box. This allows coordination between the two controls so that they present a unified UI. The combo box itself must set this style. If the style is set by anything but the combo box, the list box will regard itself incorrectly as a child of a combo box and a failure will result.
 

Variable Documentation

◆ LBS_NOTIFY

constexpr size_t LBS_NOTIFY
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Causes the list box to send a notification code to the parent window whenever the user clicks a list box item (LBN_SELCHANGE), double-clicks an item (LBN_DBLCLK), or cancels the selection (LBN_SELCANCEL).

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_SORT

constexpr size_t LBS_SORT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Sorts strings in the list box alphabetically.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_NOREDRAW

constexpr size_t LBS_NOREDRAW
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Specifies that the list box's appearance is not updated when changes are made.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_MULTIPLESEL

constexpr size_t LBS_MULTIPLESEL
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Turns string selection on or off each time the user clicks or double-clicks a string in the list box. The user can select any number of strings.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_OWNERDRAWFIXED

constexpr size_t LBS_OWNERDRAWFIXED
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are the same height. The owner window receives a WM_MEASUREITEM message when the list box is created and a WM_DRAWITEM message when a visual aspect of the list box has changed.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_OWNERDRAWVARIABLE

constexpr size_t LBS_OWNERDRAWVARIABLE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are variable in height. The owner window receives a WM_MEASUREITEM message for each item in the box when the list box is created and a WM_DRAWITEM message when a visual aspect of the list box has changed.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_HASSTRINGS

constexpr size_t LBS_HASSTRINGS
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Specifies that a list box contains items consisting of strings. The list box maintains the memory and addresses for the strings so that the application can use the LB_GETTEXT message to retrieve the text for a particular item. By default, all list boxes except owner-drawn list boxes have this style. You can create an owner-drawn list box either with or without this style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_USETABSTOPS

constexpr size_t LBS_USETABSTOPS
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Enables a list box to recognize and expand tab characters when drawing its strings. You can use the LB_SETTABSTOPS message to specify tab stop positions. The default tab positions are 32 dialog template units apart. Dialog template units are the device-independent units used in dialog box templates. To convert measurements from dialog template units to screen units (pixels), use the MapDialogRect function.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_NOINTEGRALHEIGHT

constexpr size_t LBS_NOINTEGRALHEIGHT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Specifies that the size of the list box is exactly the size specified by the application when it created the list box. Normally, the system sizes a list box so that the list box does not display partial items.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_MULTICOLUMN

constexpr size_t LBS_MULTICOLUMN
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Specifies a multi-column list box that is scrolled horizontally. The list box automatically calculates the width of the columns, or an application can set the width by using the LB_SETCOLUMNWIDTH message. If a list box has the LBS_OWNERDRAWFIXED style, an application can set the width when the list box sends the WM_MEASUREITEM message.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_WANTKEYBOARDINPUT

constexpr size_t LBS_WANTKEYBOARDINPUT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Specifies that the owner of the list box receives WM_VKEYTOITEM messages whenever the user presses a key and the list box has the input focus. This enables an application to perform special processing on the keyboard input.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_EXTENDEDSEL

constexpr size_t LBS_EXTENDEDSEL
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Allows multiple items to be selected by using the SHIFT key and the mouse or special key combinations.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_DISABLENOSCROLL

constexpr size_t LBS_DISABLENOSCROLL
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Shows a disabled horizontal or vertical scroll bar when the list 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. This style must be used with the WS_VSCROLL or WS_HSCROLL style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_NODATA

constexpr size_t LBS_NODATA
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Specifies a no-data list box. Specify this style when the count of items in the list box will exceed one thousand. A no-data list box must also have the LBS_OWNERDRAWFIXED style, but must not have the LBS_SORT or LBS_HASSTRINGS style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_NOSEL

constexpr size_t LBS_NOSEL
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Specifies that the list box contains items that can be viewed but not selected.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ LBS_COMBOBOX

constexpr size_t LBS_COMBOBOX
constexpr

#include <xtd.forms.native/include/xtd/forms/native/list_box_styles.h>

Notifies a list box that it is part of a combo box. This allows coordination between the two controls so that they present a unified UI. The combo box itself must set this style. If the style is set by anything but the combo box, the list box will regard itself incorrectly as a child of a combo box and a failure will result.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only