WINDOWTEMPLATE Statement
Syntax:
WINDOWTEMPLATE window-id [load-option] [mem-option] [code-page]
BEGIN
window-definition
.
.
.
END
The WINDOWTEMPLATE statement creates a window template. A window template
consists of a series of statements that define the window identifier, load
and memory options, window dimensions, and controls in the window. The
window template can be loaded from the executable file by using the WinLoadDlg
function.
You can provide any number of window templates in a resource script file,
but each template must have a unique window-id value.
window-id
Specifies the window identifier. This
value must be a signed integer in the range -32768 through 32767, an unsigned
integer in the range of 1 through 65535, a simple expression that evaluates
to a value in these ranges, or a character string.
load-option
Specifies when the system loads
the resource from the executable file into memory. This value must be one
of the following: PRELOAD
System
loads the resource when the application starts.
LOADONCALL
System loads the resource when the
application calls the WinLoadDlg function. This is the default option.
mem-option
Specifies how the system manages
the resource when it is in memory. This value must be one or more of the
following: FIXED
System keeps
the resource at a fixed memory location.
MOVEABLE
System moves the resource as necessary
to compact memory.
DISCARDABLE
System discards the resource if
it is no longer needed. The default setting is MOVEABLE
and DISCARDABLE.
code-page
window-definition
Specifies a WINDOW statement.
The statement defines the dimensions and style of the given window. For
details about the statement, see WINDOW
Statement.
Comments
A WINDOWTEMPLATE statement can contain DIALOG, CONTROL, and WINDOW statements.
Typically, only one WINDOW statement is used in the WINDOWTEMPLATE statement.
[Back: WINDOW Statement]
[Next: Resource Compiler Error Messages]