This resource-definition statement is an extension of the DIALOG resource-definition statement that additionally supports the following:
Syntax
nameID DIALOGEX x, y, width, height [[ , helpID]] [[ optional-statements]] { control-statements }
Parameters
nameID
Identifies the dialog box. This is either a unique name or a unique 16-bit unsigned integer value in the range 1 to 65,535.
x
Specifies, in dialog units, the location on the screen of the left side of the dialog box.
y
Specifies, in dialog units, the location on the screen of the top of the dialog box.
width
Specifies, in dialog units, the width of the dialog box.
height
Specifies, in dialog units, the height of the dialog box.
helpID
Specifies a numeric expression that indicates the identifier of the dialog box during WM_HELP processing.
optional-statements
Specifies options for the dialog box. This can be zero or more of the following statements:
Value | Description |
CAPTION “text” | Specifies the caption of the dialog box if it has a title bar. For more information, see CAPTION. |
CHARACTERISTICS dword | Specifies a user-defined DWORD value for use by resource tools. This value is not used by the system. For more information, see CHARACTERISTICS. |
CLASS class | Specifies a 16-bit unsigned integer or a string, enclosed in double quotation marks (“), that identifies the class of the dialog box. For more information, see CLASS. |
EXSTYLE=extended-styles | Specifies the extended window style of the dialog box. For more information, see EXSTYLE. |
FONT pointsize, typeface, weight, italic | Specifies the point size and typeface for the font. For weight, use the FW_* values defined in the header file Wingdi.h. For italic, specify TRUE to use an italic font, FALSE otherwise. For more information, see FONT. |
LANGUAGE language,sublanguage | Specifies the language of the dialog box. For more information, see LANGUAGE. |
MENU menuname | Specifies the menu to use. This value is either the name of the menu or its integer identifier. For more information, see MENU. |
STYLE styles | Specifies the styles of the dialog box. For more information, see STYLE. |
VERSION dword | Specifies a user-defined DWORD value. This statement is intended for use by additional resource tools and is not used by the system. For more information, see VERSION. |
control-statements
The body of the DIALOGEX resource is made up of any number of control statements. There are four families of control statements: generic, static, button, and edit. For more information about these families, see Remarks.
Remarks
The following valid operations can be contained in any of the numeric expressions in the statements of DIALOGEX:
The body of the resource is made up of generic, static, button, and edit control statements. While each of these families of statements uses a different syntax for defining specific features of its controls, they all share a common syntax for defining position, size, extended styles, Help identification number, and control-specific data.
See Also
ACCELERATORS, Button Control Statements, CHARACTERISTICS, CONTROL, CreateDialog, CreateWindow, DialogBox, DIALOGEX, Edit Control Statements, GetDialogBaseUnits, Generic Control Statements, LANGUAGE, MENU, RCDATA, Static Control Statements, STRINGTABLE, VERSION