Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set focus to an app opened using ShellExec()
Message
From
29/06/2005 17:21:20
 
 
To
22/06/2005 11:08:27
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01024079
Message ID:
01027524
Views:
12
Thanks for the help Paco. I will test this.

>Ramil,
>
>This work for me either in development environment as in runtime...
>
>...
>
>shellexec(excelfilename)
>
>FUNCTION SHELLEXEC
>LPARAMETER lcLink, lcAction, lcParms, nWin
>
>lcAction = IIF(EMPTY(lcAction),"Open",lcAction)
>lcParms = IIF(EMPTY(lcParms),"",lcParms)
>nShowWin = IIF(EMPTY(nWin),3,nWin)
>
>DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
> INTEGER nWinHandle, STRING cOperation, STRING cFilename, ;
> STRING cParameters, STRING cDirectory, INTEGER nShowWindow
>
>RETURN Shellexecute(vfp_handle,lcAction, lcLink, lcParms, SYS(2023),nShowWin)
>
>
>** vfp_handle should be 0 **
>
>...
ramil
~~ learning to stand still
Previous
Reply
Map
View

Click here to load this message in the networking platform