Re: Window moving
From: Kurt Barthelmess (kbarthelmess_at_compuserve.com)
Date: 10/22/03
- Next message: Serguei: "Re: Hot to detect network card serial number"
- Previous message: Kurt Barthelmess: "Re: Delphi application & windows resources"
- In reply to: J. Clarke: "Re: Window moving"
- Next in thread: J. Clarke: "Re: Window moving"
- Reply: J. Clarke: "Re: Window moving"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 22 Oct 2003 17:02:57 GMT
"J. Clarke" <jclarke@docstorsysNOSPAM.com> wrote:
>Thats not so much of a problem as
>capturing when the other app is moved/repositioned (please note it is not an
>app I developed).
That is inded a whole other can of worms. But it shouldn't relate to
whether you "attach" to the left side or the right side of the other
app.
To return to the other problem, it is not sufficient to capture the
mouse or "trap mouse events". The window could move itself, be moved
by the keyboard, or be moved by another application or even Windows
itself (think "tiling" or "cascading" of the desktop.) It is possible
to "spy" on the other app and watch for WM_MOVE or related messages,
but installing message hooks is a huge burden on you and a lot of
overhead. Instead consider a KISS solution - add a timer to your form
that looks to see where the other app is every 500 msec. or so. If it
has moved, move yourself. Very little overhead, very little burden and
probably an indetectable delay as far as the user is concerned.
Good luck.
Kurt
- Next message: Serguei: "Re: Hot to detect network card serial number"
- Previous message: Kurt Barthelmess: "Re: Delphi application & windows resources"
- In reply to: J. Clarke: "Re: Window moving"
- Next in thread: J. Clarke: "Re: Window moving"
- Reply: J. Clarke: "Re: Window moving"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|