Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find a descriptor HWND of Forms?
Message
 
À
31/05/2001 06:30:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00513051
Message ID:
00513105
Vues:
22
>Hi All.
>
>How it is easy to find a descriptor HWND of windows?
>
>It is necessary for usage in API.
>
>Thank for the information.

Koyla,

Is_Run32 won't find the handle of a child form of VFP. It's most easily obtained by using the _WFindTitl() and _WhTohWnd() functions in foxtools, let this:
lnhwnd = _WhTohWnd(_WFindTitl(< form caption >))
Naturally, foxtools has to be loaded before making the calls. You can get the absolute position of the window's co-ordinates by using the _GetWRect() function in the library as well. It maps to the API call Cetin mentioned. You can find documentation on these in my Extended Foxtools Help file from the download section.
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