Re: how to activate and bring form to the top
- From: "Ajay Kalra" <ajaykalra@xxxxxxxxx>
- Date: Mon, 23 Feb 2009 22:39:36 -0500
"Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx> wrote in message news:op.upt5cdr48jd0ej@xxxxxxxxxxxxxxxxxxxx
On Mon, 23 Feb 2009 18:13:19 -0800, Ajay Kalra <ajaykalra@xxxxxxxxx> wrote:
"Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx> wrote in message news:op.uptwxx078jd0ej@xxxxxxxxxxxxxxxxxxxxIf by "click on another window" you mean "click on a window owned by a different process", then the answer is "you can't".
By design, a process on Windows is not permitted to force an arbitrary window to the foreground, unless one of a certain narrow list of conditions are met.
Why cant one write a system wide hook to achieve it? Why is it a system limitation?
There are in fact ways around the limitation. But you have to go to some significant trouble to do it.
We have SetWindowsHookEx API for that reason. Thats not a limitation but an explicit API. I am not saying that its a good or bad thing but it can be done by writing a system wide hook.
I have done it(system wide hook) several times and didnt have to meet any list of conditions.
--
Ajay
.
- Follow-Ups:
- Re: how to activate and bring form to the top
- From: Peter Duniho
- Re: how to activate and bring form to the top
- References:
- how to activate and bring form to the top
- From: Alex K.
- Re: how to activate and bring form to the top
- From: Peter Duniho
- Re: how to activate and bring form to the top
- From: Ajay Kalra
- Re: how to activate and bring form to the top
- From: Peter Duniho
- how to activate and bring form to the top
- Prev by Date: Re: File cannot be accessed because used by another process
- Next by Date: Re: File cannot be accessed because used by another process
- Previous by thread: Re: how to activate and bring form to the top
- Next by thread: Re: how to activate and bring form to the top
- Index(es):
Relevant Pages
|