Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Window handle of a form
Message
De
20/03/1998 06:06:15
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00085566
Message ID:
00085908
Vues:
30
>>Is it possible to return the handle of a form?
>>GetActiveWindow and GetForegroundWindow (in User32) only returns handle to the main FoxPro window (the same value as MainHwnd() in FoxTools).
>
>To get the window handle of a FoxPro form, you can do the following after loading the FOXTOOLS.FLL library:
>
>
>* Get the whandle from the form's caption
>lnwhandle = _WFindTitl(TheForm.Caption)
>IF lnwhandle > 0
>  * Convert the whandle to hWnd
>  lnhWnd = _WhTohWnd(lnwhandle)
>ENDIF
>
>
>You can find the documentation on these (as well as other) functions in the Extended Foxtools Help file, available for downloading from the Files/Coding, Syntax & Commands section.
>
>hth,

Thanks. I've tried it out and this opens a whole new world of API's.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform