Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro 2.6 Windows running Shellexecute
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00179403
Message ID:
00179433
Vues:
21
>I "borrowed" some of George Tasker's code to allow an old 2.6 windows program to be able to create a merge file for Word, then instance Word with the merge document. Only problem I have now is FoxPro 2.6 is the active window. I know how to get the file handles using VFP, but don't have any experience using foxtools to bring an application to the fore. Anyone (George) have an idea how/if that can be done?

Hi John,

If I understand correctly, the function you'll need is ShowWindow(). Just get the window handle and pass the desired SW_ value. I'd suggest that you use my Is_Run (you did say this was in 2.6 didn't you?) or Is_Run32 function (in the Files/Download Section under Win32 and Other APIs) to get that value. The functions allow you to retrieve the value based on the known portion of a dynamic title bar.

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