#include <cstddef>
Contains combo box style constants.
Go to the source code of this file.
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. | |