HOWTO: Switch Focus to a Visual FoxPro Application (172560)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q172560 SUMMARY
If you create a local Visual FoxPro OLE Automation Server that displays a
user interface (UI), the UI may not have focus when initiated. To force the
Visual FoxPro OLE server to have focus you can call the SetForegroundWindow
API from the client and pass the window handle of the Visual FoxPro OLE
Server.
REFERENCES
For more information about the SetForegroundWindow, please refer to the
Win32 SDK
For more information about the Mainhwnd function, please refer to the
Foxtools.hlp in the tools directory that is installed with Visual FoxPro.
(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by David
Botzenhart, Microsoft Corporation
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB172560 |
---|
|