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:
SetFocus
    Add comment     W32 Constants      Translate this page
Sets the keyboard focus to the specified window. The window must be attached to the calling thread"s message queue
Code examples:
Declaration:
HWND SetFocus(
    HWND hWnd
);
FoxPro declaration:
DECLARE INTEGER SetFocus IN user32;
AS SetFocusAPI INTEGER hWindow

Parameters:
hWnd
[in] Handle to the window that will receive the keyboard input. If this parameter is NULL, keystrokes are ignored.
Return value:
If the function succeeds, the return value is the handle to the window that previously had the keyboard focus.
My comment:
DECLARE INTEGER SetFocus IN user32;
        AS SetFocusAPI INTEGER hWindow
? SetFocusAPI(_screen.HWnd)

See also: GetFocus, SetForegroundWindow, GetForegroundWindow, GetActiveWindow.
Word Index links for the SetFocus :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-07-26 00:41:02
Modified: 2006-07-26 00:44:25
Visited in last 7 days: 6
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.158.212.93)
7 sec.
Function group: 'Unicode and Character Set'
13 sec.Function: 'UpdateResource'
19 sec.Function: 'SetSuspendState'
25 sec.Function: 'SetComputerName'
31 sec.Function: 'GetProductInfo'
37 sec.Function: 'GdipCreateHBITMAPFromBitmap'
43 sec.Function: 'CeCreateProcess'
49 sec.Function: 'MessageBox'
56 sec.Function: 'IsPwrSuspendAllowed'
1.05 min.Function: 'WriteProcessMemory'
Google
Advertise here!