Window kind
Window kind {( window )} : Integer
Parameter | Type | Description | |
---|---|---|---|
window | Integer | → | Window reference number, or Frontmost window of current process, if omitted |
Function result | Integer | ← | Type of window |
This command is not thread-safe, it cannot be used in preemptive code.
Description
The Window kind command returns the 4D type of the window whose reference number is passed in window. If the window does not exist, Window kind returns 0 (zero).
Otherwise, Window kind may return one of the following predefined constants found in the Windows theme:
Constant | Type | Value |
---|---|---|
External window | Integer | 5 |
Floating window | Integer | 14 |
Modal dialog | Integer | 9 |
Regular window | Integer | 8 |
If you omit the window parameter, Window kind returns the type of the frontmost window for the current process.
Example
See example for the WINDOW LIST command.