Dialog and Window Template Statements

This section describes how to define dialog and window templates.

It also describes the control data and presentation parameter structures that the application needs to create windows and define dialog templates.

DLGTEMPLATE and WINDOWTEMPLATE statements are used by an application to create predefined window and dialog resource templates. These statements are treated identically by the resource compiler and have the following format:

 ───┬─DLGTEMPLATE─────┬──resourceid─────────
      └─WINDOWTEMPLATE──┘

 ────┬───────────┬┬───────────┬┬──────────┬──
      └loadoption─┘└─memoption─┘└─codepage─┘

 ───BEGIN──┬──DIALOG statement───┬───END───
            ├──CONTROL statement──┤
            └──WINDOW statement───┘

In the following description of the parts of the DLGTEMPLATE and WINDOWTEMPLATE statements, data types are shown after each parameter or option. These are the data types that the parameter or option is converted to when it is compiled.