Group: Keyboard Input - Library: user32
Locking mouse and keyboard input for the VFP application
BOOL EnableWindow(
HWND hWnd, // handle to window
BOOL bEnable // enable or disable input
);
DECLARE INTEGER EnableWindow IN user32;
INTEGER hwnd,;
INTEGER fEnable
hWnd [in] Handle to the window to be enabled or disabled.
bEnable [in] 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.
If the window was previously disabled, the return value is nonzero.
A window must be enabled before it can be activated. That is why VFP application can not be accessed through the Task Manager, when disabled with this function.
Only a few windowed controls in VFP expose HWND property. They can be disabled or enabled by calling this function.