Using Win32 functions in Visual FoxPro
Image Gallery
functions
•
examples
•
solutions
•
updates
•
about
•
links
•
articles
•
login
•
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
:
Thread
keyboard
specified window
calling thread
keyboard focus
message queue
Frames not supported by your user agent
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: 71
User Contributed Notes:
There are no notes on this subject.
Log in to post a comment
functions
•
examples
•
solutions
•
updates
•
about
•
links
•
articles
•
login
•
Copyright © 2001-2013
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.1.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by
Korax Online Inc.
Last Topics Visited
(50.17.109.248)
28.78 min.
Example: 'How to run FoxPro application under different user name (impersonating user)'
28.82 min.
Example: 'Retrieving information about all users currently logged on to the workstation (WinNT only)'
28.88 min.
Function: 'DeleteEnhMetaFile'
Function group: 'Metafile'
2.67 hrs.
Function: 'PathIsRelative'
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
Example: 'How to print FoxPro form'
4.57 hrs.
Function: 'GetCommandLine'
Function: 'SetDoubleClickTime'
Function group: 'Mouse Input'
10.29 hrs.
Example: 'How to print picture stored in enhanced-format metafile (*.emf)'
Example: 'Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)'
11.21 hrs.
Example: 'How to change display settings: screen resolution, screen refresh rate'
Language: 'C#'
More last topics visited ...
Advertise here!