Click to See Complete Forum and Search --> : Click is not click...with problems!


sgInformatiker
August 5th, 2007, 05:05 AM
hi,

I have an application launcher runing in the full screen mode.
My problem is the handling of the mouse clicks. If the user clicks once the launched application starts (in a few seconds...depends). The laucher is in the background and the started application is in the front. Everybody is happy!!!

But the user comes on many ideas;-)
It clicks and clicks and... The result is a situation with a started application running in the background and the launcher is in the front.

Need help please!

Krishnaa
August 17th, 2007, 09:01 AM
Thats what it is supposed to be, it's not a problem. If by chance you click on the window behind the one which is just comping up, the clicked window is put in foreground by windows OS.

If you still want to put forth your new window, you can call SetForegroundWindow() API, you will have to find a right place to call this though, may be after receiving WM_ACTIVATE with FALSE, which means your window is deactivated.

sgInformatiker
August 19th, 2007, 03:58 AM
If you still want to put forth your new window, you can call SetForegroundWindow() API, you will have to find a right place to call this though, may be after receiving WM_ACTIVATE with FALSE, which means your window is deactivated.

OK! And how to get the handle of the external application window?

Best regards!