DOC: DECLARE DLL Example Has Incorrect Information (162445)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
This article was previously published under Q162445 SUMMARY
The DECLARE - DLL example in Visual FoxPro Help gives the following
information about the GetActiveWindow API call:
This example for Windows displays the window handle for the currently
active Windows application. When the WAIT window is displayed, you have
5 seconds to press ALT+TAB to switch to a different Windows application,
or you can leave Visual FoxPro as the active application.
This gives the impression that the GetActiveWindow API will return a handle
for the currently active window. This is wrong. The GetActiveWindow returns
only a handle to the Active Window of the calling thread.
REFERENCES
Win32 API Help, Win32api.hlp; search on "GetActiveWindow"
Visual FoxPro Help, Foxhelp.hlp; search on "GetActiveWindow"
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | KB162445 |
---|
|