Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set focus to an app opened using ShellExec()
Message
De
29/06/2005 17:21:20
 
 
À
22/06/2005 11:08:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01024079
Message ID:
01027524
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform