Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WINAPI EnumsWindow Pointer to VFP function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00392497
Message ID:
00392528
Vues:
10
>Hi all,
>
>Im pretty sure that I know the answer to this, but I thought I'd try it out on the group < g >.
>
>Im translating some Delphi code to VFP. The code calls out to the EnumWindows API function and passes a pointer to a Delphi function to be used as a callback function.
>
>This cannot be done under VFP can it?

Nope. It could be done from VB, but, because of a lack of a function to determine the address of the function, plus VFP's non-standard method of handling Windows messages, it's a no go.

>The callback function checks for a specific window title, so Im sure that I can use the FindWindow API function just as easily or George Tasker's Is_Run.prg, but I just thought I'd ask.
>
Basically, that's what Is_Run does. Loops through all top-level windows looking for a match for the portion provided. EnumWindows also only does top-level windows.
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