List Box Styles

OS/2 Windows Explanation
LS_EXTENDSEL LBS_EXTENDEDSEL Allows the user to select multiple lines with the mouse and the Control and/or Shift keys. Extended selection under OS/2 is only available for OS/2 Version 2.x and above.
LS_HORZSCROLL WS_HSCROLL Adds a horizontal scroll bar to the bottom of the list box. The bar allows the user to scroll the contents of the list box horizontally when items in it are wider than the list box.
LS_MULTIPLESEL LBS_MULTIPLESEL Allows the selection of multiple items within the list box. The default for a list box is to allow only the selection of a single item.
LS_NOADJUSTPOS LBS_NOINTEGRALHEIGHT Prevents the height of the list box from being adjusted to a multiple of the item height. List boxes with this style could display partial items at the bottom of the box.
LS_OWNERDRAW LBS_OWNERDRAWFIXED Sends the owner window a WM_DRAWITEM message each time an item must be drawn or highlighted.
- LBS_HASSTRINGS Designates that the owner-drawn combo box contains string items, allowing the application to use the LB_GETTEXT message to query the item text.
- LBS_NOREDRAW Keeps the list box from being updated when changes are made. The WM_SETREDRAW message can be used to change the style at any time.
- LBS_NOTIFY Sends the owner window of the list box a notification message whenever the user clicks or double-clicks on an item within the list box.
- LBS_MULTICOLUMN Draws the items within the list box in a columnar format. The LB_SETCOLUMNWIDTH message is used to set the width of the columns.
- LBS_OWNERDRAWVARIABLE Draws the list box using variable heights for each item. The list box owner is responsible for the contents.
- LBS_SORT Sorts the strings entered in the list box.
- LBS_STANDARD Creates a standard Windows list box where the strings entered are automatically sorted. The owner window receives a notification message when the user clicks or double-clicks on an item.
- LBS_USETABSTOPS Causes the list box to recognize tab characters (Ascii 9) and to expand them. The default tab positions in the list box are every 32 dialogue units.
- LBS_WANTKEYBOARDINPUT Sends the list box WM_VKEYTOITEM or WM_CHARTOITEM messages whenever a key is pressed by the user and the list box has the current focus. The application can then perform any special processing required for the keystroke.
- WS_VSCROLL Adds a vertical scroll bar to the right side of the list box. The bar allows the user to scroll the contents of the list box vertically.


OS/2 - Windows Styles Definitions: Detailed Descriptions
OS/2 - Windows Styles Definitions: Summary