The CTEXT resource-definition statement creates a centered-text control. The control is a simple rectangle displaying the given text centered in the rectangle. The text is formatted before it is displayed. Words that would extend past the end of a line are automatically wrapped to the beginning of the next line.
The CTEXT statement, which you can use only in a DIALOG statement, defines the text, identifier, dimensions, and attributes of the control.
CTEXT text, id, x, y, width, height [, style [, extended-style]]
If you do not specify a style, the default style is SS_CENTER | WS_GROUP.
For more information on the text, id, x, y, width, height, style, and extended-style parameters, see Common Control Parameters.
This example creates a centered-text control that is labeled Filename:
CTEXT "Filename", 101, 10, 10, 100, 100