Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pop-up a message in front of active applications
Message
 
À
01/11/2001 16:36:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00576366
Message ID:
00576847
Vues:
27
Thanks, I will try this if the non-API solution doesn't work.

Joe

>>I have an application that at times runs a timer. Usually this application runs in the background. At times, the timer will detect something and I want to send a message to the user in front of any other applications that might be running. Can one of you API wizards help me out here (please)?
>>
>>Thanks,
>>Joe
>
>I'm certainly no API wizard. But,
>
>getActiveWindow() is here:
>http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,31,Forum=0,18,43
>
>Info on setForeGroundWindow() is here:
>http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,31,Forum=0,18,87
>
>In the init of the form, you can:
>
>thisForm.hWnd = getActiveWindow()
>
>When the timer fires, you:
>
>SetForegroundWindow(thisForm.hWnd)
>
>It doesn't always work; sometimes it will only cause the form's taskbar entry to start flashing. An example of when this would happen is when another program has a modal dialog open (such as a printer dialog).
>
>HTH,
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform