The IsWindowEnabled function determines whether the specified window is enabled for mouse and keyboard input.
BOOL IsWindowEnabled(
HWND hWnd // handle to window to test
);
If the window is enabled, the return value is nonzero.
If the window is not enabled, the return value is zero.
A child window receives input only if it is both enabled and visible.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Keyboard Input Overview, Keyboard Input Functions, EnableWindow, IsWindowVisible