I used the following code to bring a VFP 5.0 app (a network messaging program) to the foreground whenever a user received a message:
&& setup code:
declare integer FindWindow in Win32api string,string
declare SetForegroundWindow in Win32api integer
_screen.caption = "Test Window"
nWinHandle=FindWindow(null,"Test Window"
x=inkey(5) && for this demo only, pause to move some other windows to top
&& to bring app to the foreground:
SetForegroundWindow(nWinHandle)
This worked fine under Windows 95, bringing the app to the foreground. But under Windows XP, the title just flashes in the taskbar. Is there a way to make the VFP application the foreground/active app in Windows XP?
Thanks for any help with this.
&& setup code:
declare integer FindWindow in Win32api string,string
declare SetForegroundWindow in Win32api integer
_screen.caption = "Test Window"
nWinHandle=FindWindow(null,"Test Window"
x=inkey(5) && for this demo only, pause to move some other windows to top
&& to bring app to the foreground:
SetForegroundWindow(nWinHandle)
This worked fine under Windows 95, bringing the app to the foreground. But under Windows XP, the title just flashes in the taskbar. Is there a way to make the VFP application the foreground/active app in Windows XP?
Thanks for any help with this.