Method EnableWindow
EnableWindow(nint, bool)
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.
Declaration
public static extern bool EnableWindow(nint hWnd, bool isEnabled)
Parameters
Type | Name | Description |
---|---|---|
nint | hWnd | A handle to the window to be enabled or disabled. |
bool | isEnabled | If the window was previously disabled, the return value is nonzero. If the window was not previously disabled, the return value is zero. |
Returns
Type | Description |
---|---|
bool | If the window was previously disabled, returns true. If the window was not previously disabled, returns false |