Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set focus to an app opened using ShellExec()
Message
From
22/06/2005 11:08:27
 
 
To
21/06/2005 12:18:21
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01024079
Message ID:
01025475
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform