The WindowEx.EnableWindow function enables or disables mouse and keyboard input to the specified window or control. When input is disabled, the window does not receive input such as mouse clicks and key presses. When input is enabled, the window receives all input.

boolean WindowEx.EnableWindow(

number hWnd, --handle to window
boolean bEnable --flag for enabling or disabling input
);

Parameters

hWnd

Identifies the window to be enabled or disabled.

bEnable

Specifies whether to enable or disable the window. If this parameter is TRUE, the window is enabled. If the parameter is FALSE, the window is disabled.

Return Values

If the function succeeds, the return value is TRUE
If an error occured, the return value is FALSE