Export (0) Print
Expand All

CHECKBOX control

Defines a check box control. The control is a small rectangle (check box) that has the specified text displayed next to it (typically, to the right). When the user selects the control, the control highlights the rectangle and sends a message to its parent window.

The CHECKBOX statement, which can only be used in a DIALOGEX statement, defines the text, identifier, dimensions, and attributes of the control.

CHECKBOX text, id, x, y, width, height [, style [, extended-style]]

text

Text that is to be displayed to the right of the control.

style

Control styles. This value can be a combination of the button class style BS_CHECKBOX and the WS_TABSTOP and WS_GROUP styles.

If you do not specify a style, the default style is BS_CHECKBOX | WS_TABSTOP.

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

Examples

This example defines a check-box control that is labeled Italic:

CHECKBOX "Italic", 3, 10, 10, 40, 10

See also

AUTOCHECKBOX
AUTO3STATE
Check Boxes
GetDialogBaseUnits
STATE3

 

 

Community Additions

ADD
Show:
© 2014 Microsoft