Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the windows handle of an application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00841131
Message ID:
00841162
Vues:
27
>>>Hi all,
>>>
>>>Is the _vfp.hWnd the top-level window handle of a VFP application that can be seen from another VFP application? I use User32.IsWindow(hWnd_) but it returns 0, meaning: the window does not exist.
>>>
>>>Comments and feedback highly appreciated. TIA.
>>
>>The _VFP.hWnd is the window handle for the frame. I get back 1 when calling IsWindow with the _VFP.hWnd.
>
>My test is as follows:
>
>run myApp.exe from DOS.
>from within myApp.exe I strtofile(_vfp.Hwnd)
>
>from a VFP command window
>?IsWindow(theHwndValue) && returns 0
>
I think that the problem may be in using STRTOFILE(). Try this
* In myApp.exe
= STRTOFILE(TRANSFORM(_VFP.hWnd), 'myhwnd.txt')
* In the command window
hWind = VAL(FILETOSTR('myhwnd.txt'))
? IsWindow(hWnd)
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