Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxtools 'MainHWND' Function and Windows API
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00790131
Message ID:
00791040
Vues:
39
>The GetActiveWindow definition:
>
>The GetActiveWindow function retrieves the window handle to the active window attached to the calling thread's message queue.
>

>So if this function is called from a FoxPro app's thread -- imho -- there is no chance to get any other window handle, but the FoxPro app's window.

Nope, not right. Try the following. It returns 0.
DECLARE INTEGER GetActiveWindow IN Win32API
LOCAL oShell
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run("notepad.exe")
oShell.AppActivate("notepad")
? GetActiveWindow()
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform