Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of EnumChildWIndows
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00688512
Message ID:
00688994
Vues:
57
Well, so far I am able to get a windowhandle from a childwindow. However, retrieving the title from the window with GetWindowText returns a very constant 0 (zero)

What I do is this:

DECLARE INTEGER GetWindowText ;
IN USER32.dll ;
INTEGER n_win_handle, ;
STRING @ cwindow_title, ;
INTEGER ntitle_length

DECLARE INTEGER GetWindow ;
IN win32api ;
INTEGER ncurr_window_handle, ;
INTEGER ndirection

when I find a handle from one instance of VFP (lnTopWindow) I issue:
lnChild = GetWindow( lnTopWindow, 5)
cTitle = space(255)
?GetWindowText( lnCHild, @lcTitle, 255)

Nothing gets returned. And I DO need that windowtitle.

Boudewijn.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform