 |
GetActiveWindow ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetActiveWindow function retrieves the window handle to the active window attached to the calling thread"s message queue. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HWND GetActiveWindow(VOID)
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetActiveWindow IN user32
|
 |
 |
 |
| Parameters: |
 |
| This function has no parameters. |
 |
 |
| Return value: |
 |
| The return value is the handle to the active window attached to the calling thread"s message queue. Otherwise, the return value is NULL. |
 |
 |
| My comment: |
 |
For a VFP application you always have this function pointing to the main VFP window.
To get the handle to the foreground window, you can use GetForegroundWindow.
Windows 98/Me and Windows NT 4.0 SP3 and later: To get the window handle to the active window in the message queue for another thread, use GetGUIThreadInfo.
Starting with version 7th the Visual FoxPro includes window handle in standard properties of the Form object.
See also: GetFocus, GetForegroundWindow, SwitchToThisWindow |
 |
 |
| Word Index links for the GetActiveWindow : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-07-12 12:00:00 | | Modified: | 2009-01-28 09:02:32 | Visited in last 7 days: 961 |