List Box Control Window Class
The list box control's window class describes an ordinary list box.
The button control's window class is registered automatically when Windows starts. The name of the class is "LISTBOX".
Styles
- LBS_DISABLENOSCROLL
- Show a disable the vertical scroll bar in the list box if it does not contain enough items to scroll. If this flag is not specified, such a scroll bar is not displayed.
- LBS_EXTENDEDSEL
- Allow the user to select multiple items.
- LBS_HASSTRINGS
- The list box is drawn manually by the application and contains strings. Either LBS_OWNERDRAWFICED or LBS_OWNERDRAWVARIABLE must also be specified.
- LBS_MULTICOLUMN
- The list box contains multiple columns which are scrolled horizontally.
- LBS_MULTIPLESEL
- Toggle the selection of a string every time the user clicks or double-clicks it.
- LBS_NODATA
- Intended for list boxes having more than 1000 items, do not have the operating system handle any of the entries. LBS_OWNERDRAWFIXED must also be specified, and neither LBS_SORT nor LBS_HASSTRINGS can be specified.
- LBS_NOINTEGRALHEIGHT
- Force the list box to be exactly the size specified by the application, instead of allowing the operating system to slightly resize it to prevent displaying partial selections.
- LBS_NOREDRAW
- Do not redraw the list box when changes are made.
- LBS_NOSEL
- Do not allow the user to select items in the list box.
- LBS_NOTIFY
- Notify the parent window whenever the user clicks or double-clicks a string in the list box.
- LBS_OWNERDRAWFIXED
- The owner of the list box is fully responsible for drawing it manually, and all of the items in the list box have the same height.
- LBS_OWNERDRAWVARIABLE
- The owner of the list box is full responsible for drawing it manually, and the heights of the items in the list box have can be different.
- LBS_SORT
- Automatically sort the strings in the list box alphabetically.
- LBS_STANDARD
- Automatically sort the strings in the list box alphabetically, notify the parent window whenever the user clicks or double-clicks a string, and display a border around the list box.
- LBS_USETABSTOPS
- Allow the list box to expand tab characters when drawing its strings.
- LBS_WANTKEYBOARDINPUT
- Notify the owner of the list box whenever the user types a key while the list box has the focus.
Constant Definitions
Const LBS_DISABLENOSCROLL = &H1000
Const LBS_EXTENDEDSEL = &H800
Const LBS_HASSTRINGS = &H40
Const LBS_MULTICOLUMN = &H200
Const LBS_MULTIPLESEL = &H8
Const LBS_NODATA = &H2000
Const LBS_NOINTEGRALHEIGHT = &H100
Const LBS_NOREDRAW = &H4
Const LBS_NOSEL = &H4000
Const LBS_NOTIFY = &H1
Const LBS_OWNERDRAWFIXED = &H10
Const LBS_OWNERDRAWVARIABLE = &H20
Const LBS_SORT = &H2
Const LBS_STANDARD = &HA00006
Const LBS_USETABSTOPS = &H80
Const LBS_WANTKEYBOARDINPUT = &H400
Back to the Window Class list.
Back to the Reference section.
Last Modified: October 29, 2000
This page is copyright © 2000 Paul Kuliniewicz.
Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/other/classes/listbox.html