Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Howto get window handle of modify command ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00801577
Message ID:
00801722
Vues:
20
>Hi Everyone,
>
>Does anyone know how you can retrieve the window handle of a window opened by MODIFY COMMAND?
>
>The reason I need it is to programatically save the prg file that I am editing using the _EdSave function.
>
>What I have is a two windows defined using Define Window, and have opened up the procedure using the following :
>
>
>MODIFY COMMAND test.prg ;
>	NOMENU NOWAIT WINDOW wEditor IN WINDOW wParent SAVE
>
>
>When I try to call the _WGetPort method after that to get the window handle, it only gets the window handle of the parent window.
>
>Is there anything I could do to get the editor window handle?
>
>Many thanks,
>
Michael,

Are you using Foxtools with this? AFAIK, _WGetPort() returns the internal VFP handle to the window (known as the whandle).
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