Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the easiest way to get Window handle value?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00051377
Message ID:
00051395
Vues:
49
>>I'm trying to integrate VFP 5.0 with the ComputerEyes video capture card and SDK....
>>
>>I need to be able to get the actual handle number of a form to feed to the OCX SDK call...
>>
>>What is the easiest way to do it....I would have thought that their would have been a function
>>like 'hWnd=GetHandle()' or some variation...
>>
>>Or, do I have to build a C wrapper as described in the docs?
>>
>>Thanks,
>>
>>Jon
>
>Sometimes, Active-x will be happy with VFP handle, returned by Win32api FindWindow function.

The VFP main window handle can also be obtained through the FOXTOOLS.FLL function MainHWnd(). However, if neither of the these is successful, you can try GetTopWindow. It will return the handle of the first child window in the Z order. Pass it the value returned by MainHWnd().

George
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