Question

We have an application that downloads some files in the background. Our application pops up when an Internet connection is made, and after prompting the user to accept the downloads, we'd like to switch back to the home screen while we do our stuff.

We can't work out how to do to this. We can emulate pressing "back" a few times, which sometimes works, but where you end up depends on what the user was doing when the Internet connection happened.

So, can someone provide pointers to how to do this?

Thanks.

Paul.

Was it helpful?

Solution

Can you try setting the today screen as the foreground window?

HWND hWnd = FindWindow(_T("DesktopExplorerWindow"), _T("Desktop")); SetForegroundWindow(hWnd);

OTHER TIPS

Why don't you simply hide your app?

Using a Notification shell object instead of popping up a full screen window might be a better alternative. Details here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top