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:
Disabling mouse and keyboard input for the main VFP window (with the app still running)
Splash Screen for the VFP application
BlockInput
    Add comment     W32 Constants      Translate this page
Blocks keyboard and mouse input events from reaching applications.
Code examples:
Splash Screen for the VFP application
Disabling mouse and keyboard input for the main VFP window (with the app still running)
Declaration:
BOOL BlockInput(
  BOOL fBlockIt  // block option
);
FoxPro declaration:
DECLARE INTEGER BlockInput IN user32 INTEGER fBlockIt
Parameters:
fBlockIt
[in] Specifies the function"s purpose. If this parameter is TRUE, keyboard and mouse input events are blocked. If this parameter is FALSE, keyboard and mouse events are unblocked.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
Note that only the thread that blocked the input can successfully unblock it.
Word Index links for the BlockInput :
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:35:06
Visited in last 7 days: 32
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.91.171.137)
6 sec.Function: 'GdipCreateBitmapFromGdiDib'
11 sec.Function: 'GetPriorityClass'
17 sec.Function: 'OpenSCManager'
23 sec.Function: 'HeapSize'
29 sec.Function: 'ExpandEnvironmentStrings'
34 sec.Function: 'WinHttpCloseHandle'
38 sec.Example: 'Using named pipes for interprocess communication'
46 sec.Function: 'SQLConnect'
52 sec.Function: 'WinHttpSetCredentials'
59 sec.Function: 'GdipGetImageVerticalResolution'
Google
Advertise here!