Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FindWindow Problem
Message
 
À
10/12/1997 17:01:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00065137
Message ID:
00065140
Vues:
49
>When i call FindWindow api with _Screen.ActiveForm.Caption as second parameter and 0 as first parameter the function returns 0, this is not found. Any ideas??.
>
>if i can do this, i will make a function that prints any object in the screen, including entire forms. Only with API programming.
>
>Thanks
>
>Mauricio Atanache G.

FindWindow doesn't work with child windows. That's why you get that result. If you're using VFP 5.0, do a:

SET LIBRARY TO FOXTOOLS

then:

lnwhandle = _WFindTitl(_SCREEN.ActiveForm.Caption)
lnHWnd = _WhToHWnd(lnwhandle)

to get the window handle.

hth,

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