The dialog template items are specified as elements of an array that also defines the hierarchy of the control windows of the dialog box. Each element of the array is a control window descriptor and defines some control or a child of some control, so that every control within the dialog box is described by this array. The first descriptor is the specification of the dialog box itself.
The dialog template items consist of:
Reserved (USHORT) (BOOL16)
This is the number of elements following in the array that are created as child windows of this window. Each window can have any number of child windows, which allows for a tree-structured arrangement.
For example, in the figure in Dialog Template Format and Contents, assuming that there are no more dialog items than are shown, the first item, the dialog box control window descriptor, has three children. The second item has no children, the third item has two children, and the remaining three items have no children.
For controls that allow input of text, this is the current text length, not the maximum text length, and so this value changes when text is put into the control.
The standard style bits are 16 bits. The use of the remaining 16 bits depends on the class of the control.
y (SHORT)
cy (SHORT)