Defines the type of template format and contains
information about the location of the other sections of the template. It
also contains a summary of the status of the individual controls contained
within the dialog box.
Items
Defines
each of the controls that comprise the dialog box.
Data
area
Contains the data values associated with each
control. Each control defined in the item section contains pointers to the
data area section. The data area also contains presentation parameter definitions.
The data area is not necessarily a contiguous portion of the template. User
data can be placed anywhere in the template if it does not interfere with
other defined information.
The sections of a dialog template are illustrated in the following figure.
Notes
Throughout the dialog template all lengths are
in bytes. String lengths do not include any null terminator that may be
present. When strings are passed to the Presentation Interface, the length
specifications are used and any null terminators are ignored. When strings
are returned by the Presentation Interface, length specifications and null
terminators are both supplied; therefore, space must be allowed for a null
terminator.
All offsets are in bytes from the start of the
dialog template structure.