 |
GetFocus ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the handle to the window that has the keyboard focus, if the window is attached to the calling thread"s message queue. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HWND GetFocus(VOID);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetFocus IN user32
|
 |
 |
 |
| Parameters: |
 |
| This function has no parameters. |
 |
 |
| Return value: |
 |
| The return value is the handle to the window with the keyboard focus. If the calling thread"s message queue does not have an associated window with the keyboard focus, the return value is NULL. |
 |
 |
| My comment: |
 |
This function returns a window handle to an active form, or for the main VFP window if it has the keyboard focus. In this case its result is equivalent to the one of GetActiveWindow.
See also: SetFocus, SetForegroundWindow, GetForegroundWindow, GetActiveWindow. |
 |
 |
| Word Index links for the GetFocus : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-04 12:00:00 | | Modified: | 2006-07-26 00:45:06 | Visited in last 7 days: 163 |