Using Win32 functions in Visual FoxPro Image Gallery
Keyboard Input
..msdn
ActivateKeyboardLayout
BlockInput
EnableWindow
GetActiveWindow
GetAsyncKeyState
GetFocus
GetKBCodePage
GetKeyboardLayout
GetKeyboardLayoutList
GetKeyboardLayoutName
GetKeyboardState
GetKeyNameText
GetKeyState
IsWindowEnabled
keybd_event
MapVirtualKey
RegisterHotKey
SetFocus
SetKeyboardState
ToAscii
UnregisterHotKey
VkKeyScan
Code examples:
Locking mouse and keyboard input for the VFP application
EnableWindow
..msdn    Add comment     W32 Constants      Translate this page
Enables or disables mouse and keyboard input to the specified window or control.
Code examples:
Locking mouse and keyboard input for the VFP application
Declaration:
BOOL EnableWindow(
  HWND hWnd,     // handle to window
  BOOL bEnable   // enable or disable input
);
FoxPro declaration:
DECLARE INTEGER EnableWindow IN user32;
    INTEGER hwnd,;
    INTEGER fEnable
Parameters:
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.
Return value:
If the window was previously disabled, the return value is nonzero.
My comment:
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.
Word Index links for the EnableWindow :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-02 12:00:00
Modified: 2007-02-07 09:31:41
Visited in last 7 days: 16
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.198.134.32)
39 sec.Function: 'NetServerGetInfo'
Function group: 'Network Management'
53 sec.Function: 'InternetCloseHandle'
Function group: 'Internet Functions (WinInet)'
1.05 min.Function: 'NetScheduleJobEnum'
Function group: 'Network Management'
1.23 min.Function: 'mixerGetNumDevs'
Function group: 'Windows Multimedia'
1.42 min.Function: 'CeRegCreateKeyEx'
Function group: 'Remote Application Programming (RAPI)'
1.87 min.Function: 'CreateStreamOnHGlobal'
2.05 min.Function: 'CertOpenSystemStore'
Function group: 'Cryptography Reference'
2.27 min.Function: 'SQLDriverConnect'
Function group: 'ODBC API'
2.48 min.Function: 'CreateEnhMetaFile'
Function group: 'Metafile'
2.65 min.Function: 'WSAWaitForMultipleEvents'
Function group: 'Windows Sockets 2 (Winsock)'
Google
Advertise here!