Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the easiest way to get Window handle value?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00051377
Message ID:
00051968
Vues:
55
>Hi John!
>
>Getforegroundwindow() retrieve the handle to most top-level window in
>hierarchy. IOW, if you have an application with toplevel form as main form,
>you will get the handle to this window...
>I'm using this function in my class Sysinfo for fiddling with window such
>as flashing etc...
>As for your second question: maybe Activate window will do the trick?
>
>>I tried your GetForegroundWindow() Win32API call plus all the > All of
>them are invalid for the current window except for one Win32
>>On another note, If I create two windows, I should be able to do a
>>SetFocus(hWnd) to change the focus to the first window I create if
>>I am currently in the second window.... It doesn't seem to work...

Vlad,

GetForegroundWindow works fine for getting the parent window handle (which is also available from FOXTOOLS).however, I believe that the problem is in getting the child window handle.
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