Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you get the window handle for _Screen
Message
 
À
15/11/2001 18:19:00
Tom Kreinbring
Thomas Kreinbring & Associates
Temple City, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00582452
Message ID:
00582672
Vues:
17
>I have an application that starts another task doing a Run /N xxx.exe. The problem I am having is the new task keeps focus while
>the original task seems to run in the background. What I want to do is cause the original task to be the active task as quickly
>as possible after the second task is started. I have a routine that I have tried using the sendmessage command along with a
>messagereceived event. I coded a setfocus in the event but that did not work. A C programmer friend of mine said to try the
>windows setfocus command but in order to do that I need to know what my window handle is. Any ideas?

Just to answer the question directly...< s >

If you mean the window handle of the main VFP window, it depends on the version of VFP you're using. In VFP 6.0 and before, load the Foxtools library and use the value returned by MainhWnd(). In VFP 7.0, use _VFP.hWnd.
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