LISTBOX control

Defines commonly used controls for a dialog box or window. The control is a rectangle containing a list of strings (such as filenames) from which the user can select.

The LISTBOX statement, which can only be used in a DIALOGEX or WINDOW statement, defines the identifier, dimensions, and attributes of a control window.

LISTBOX id, x, y, width, height [, style [, extended-style]]


Control styles. This value can be a combination of the list-box class styles and any of the following styles: WS_BORDER and WS_VSCROLL.

If you do not specify a style, the default style is LBS_NOTIFY | WS_BORDER.

For more information about the general syntax of a control statement, see Common Control Parameters.


This example defines a list-box control whose identifier is 101:

LISTBOX 101, 10, 10, 100, 100

See also


List Boxes