Mark,

Here is where it gets tricky.  You will need to install a global message
hook (SetWindowsHookEx) and need to have the proper NT security rights to do
it.  The hook procedure must be in a DLL (or package).  You will then need
to know the Hwnd of the Window (and to know this, you will need to do a
FindWindow first).  Global message hooks can do all sorts of nasty things -
like crash the desktop if you are not careful.

What sort of App are you monitoring?  Why can't you use the handle returned
by FindWindow, and continue to use the handle.  Why do you need to know if
the caption has changed?  Is there an easier way to achieve what you are
doing?

Dennis.

> >WM_SETTEXT is sent to change the title of a window.  BTW, if it
> is a Delphi
> >app that you are monitoring, you can try to find the class of
> the window -
> >it would be the same as the form name.
>
>
> Cool, the big question is thou, how do I set my app up to monitor the
> messages of the OTHER app?  (Its a VC++ app I think).  I can find
> it ok with
> FindWindow...


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to