Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pop-up a message in front of active applications
Message
 
To
01/11/2001 16:36:04
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00576366
Message ID:
00576847
Views:
29
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform