Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Paint Brush
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00153835
Message ID:
00153889
Vues:
22
>Anybody know how to open PAINT BRUSH from within Foxpro??
>
>CreateObject("????????"

If you want to open paint brush without opening a file (and you know the complete path), use RUN.

Otherwise, you can use ShellExecute, passing the name of the file you want opened, like this:
DECLARE INTEGER ShellExecute IN Shell32;
  INTEGER hwnd, STRING @lpOperation, STRING @lpFile,;
  STRING @lpParameters, STRING @lpDirectory, SHORT nshow
* lcfile is the bitmap to open, lcdir is the working directory.
* lnshow is the show command
lcop = 'open'
lnresult = ShellExecute(0, @lcop, @lcfile, 0, @lcdir, lnshow)
See help for RUN for the lnshow values. The return value will be greater than 31 if the function succeeds.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform