Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getfocus()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetFocus()
Return the handle to the window with the input focus
------------------------------------------------------------------------------

Syntax
GetFocus()   -->   hWnd

Arguments
None.

Returns
If successful, a handle to the window that has the input focus
is returned as an integer.  Otherwise, zero (0) is returned.

Description
This function can be used to retrieve a handle to a window
that has the input focus  (i.e. the window that will receive
keystrokes from the user).  Note that zero (0) is returned if
no window has the input focus.

Example
hWnd = GetFocus() // handle of owner
if  hWnd  !=  0
     ?  "This window has the focus: ",  hWnd
endif


See Also: SetFocus()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson