Information générale
Catégorie:
Fonctions Windows API
I use this in Win95, I don't know if it works on NT or Win 3.11
FUNCTION RunFile(cFile, cPath, cAction, ShowWindow)
PRIVATE X, Main_hWnd, cur_window
&& ShowWindow = 2 && Minimized
&& ShowWindow = 3 && Maximized
&& ShowWindow = 10 && Normal
SET LIBRARY TO HOME() + ".\FOXTOOLS.FLL"
* Returns Handle of Main VFP Window
Main_hWnd = MainHWND()
* Returns Current Window
cur_window = _WhToHwnd(_WOnTop())
DECLARE ShellExecute IN "Shell32.dll" LONG, String, String, String, String, LONG
X = ShellExecute(cur_window, cAction, cFile, "", cPath, ShowWindow)
CLEAR DLLS
RETURN X
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement