|
WindowHelperEnableWindow Method |
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.
EnableWindow function Namespace: Xcalibur.NativeMethods.V2.WindowsAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("user32.dll")]
public static bool EnableWindow(
IntPtr windowHandle,
bool enable
)
<DllImportAttribute("user32.dll">]
Public Shared Function EnableWindow (
windowHandle As IntPtr,
enable As Boolean
) As Boolean
public:
[DllImportAttribute(L"user32.dll")]
static bool EnableWindow(
IntPtr windowHandle,
bool enable
)
[<DllImportAttribute("user32.dll")>]
static member EnableWindow :
windowHandle : IntPtr *
enable : bool -> bool
Parameters
- windowHandle IntPtr
- A handle to the window to be enabled or disabled.
- enable Boolean
- Indicates 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 Value
BooleanSee Also