Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Howto get window handle of modify command ?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00801577
Message ID:
00801722
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform