CHECKBOX Control (Windows Embedded CE 6.0)

1/6/2010

This resource-definition statement creates a check box control that displays an X when the user selects the control. The control then sends a message to its parent window.

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

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

Parameters

  • text
    Specifies the text that is displayed to the right of the control.
  • style
    Specifies the 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.

Example

The following code example shows how to create a check box control that is labeled Italic.

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

See Also

Reference

AUTOCHECKBOX Control
AUTO3STATE Control
GetDialogBaseUnits
STATE3 Control
DIALOG Resource

Concepts

Resource-Definition Statements