The information in this article applies to:
SUMMARYWhen the RUN /N command starts another Windows application from within FoxPro for Windows, the program invokes the next line of FoxPro code (the line following the RUN /N command) immediately without pausing execution. Sometimes it is useful to halt the execution of the FoxPro program until the other application closes. There is no switch on the RUN command to accomplish this, so this article shows you how to use FOXTOOLS.FLL to control program execution. MORE INFORMATIONThe following code employs FOXTOOLS.FLL and the RegFn() function to register the Windows API function GetActiveWindow(). Then GetActiveWindow() determines if the FoxPro for Windows application is on top. If FoxPro is the active window, the program execution continues.
The application started by the RUN /N command cannot be opened as inactive.
Therefore, the RUN /N cannot contain the values 4 (Inactive and normal
size) or 7 (Inactive and minimized) after the /N parameter.
REFERENCES
Microsoft Windows 3.1 Programmer's Reference, Volume 2, page 319.
Additional query words: FoxWin
|
|
Last Reviewed: August 18, 1999 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |