Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set focus to an app opened using ShellExec()
Message
De
22/06/2005 11:08:27
 
 
À
21/06/2005 12:18:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01024079
Message ID:
01025475
Vues:
19
This message has been marked as a message which has helped to the initial question of the thread.
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 **

...
Saludos,

Paco Calvente
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform