Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement