Skip to main content
Version: 21 R4 BETA

Window kind

Window kind ( {window : Integer} ) : Integer

ParameterTypeDescription
windowInteger→Window reference number, or Frontmost window of current process, if omitted
Function resultInteger←Type of window
History
ReleaseChanges
6Created

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:

ConstantTypeValue
External windowInteger5
Floating windowInteger14
Modal dialogInteger9
Regular windowInteger8

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.

See also​

GET WINDOW RECT
Get window title
Window process

Properties​

Command number445
Thread safeno