Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FindWindow() VFP from Word
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
FindWindow() VFP from Word
Divers
Thread ID:
00139394
Message ID:
00139394
Vues:
189
Hi,

I would like to know if VFP is running when running a Word macro. Word requiers both the window class and the window name to find the window using FindWindow(). To get the class name of the VFP main window I used GetClassName() and found it to be "Fox_4000001". However, when I use this in Word it still doesn't recognize VFP as running.

The code I am using in Word97 is this:

lnHandle = FindWindowA("Fox_4000001", "Aladdin 4.0")

where "Aladdin 4.0" is the caption of the main VFP window when our app is running in VFP3.


Help appreciated...
(using VFP 3.0 for Win & Mac)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform