LISTBOX Control (Windows CE 5.0)

Send Feedback

This resource-definition statement creates a list box for a dialog box or window. The control is a rectangle containing a list of strings, such as file names, from which the user can select.

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

LISTBOXid, x, y, width, height [[, style [[, extended-style]]]]


  • style
    Specifies the control style. This value can be a combination of the list box class styles and 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 id, x, y, width, height, style, and extended-style parameters, see Common Control Parameters.


The following code example shows how to create a list box control whose identifier is 101.

LISTBOX 101, 10, 10, 100, 100 

See Also

COMBOBOX Control | DIALOG Resource

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.