How to reveive WM_CREATE message for any created window ?

How to reveive WM_CREATE message for any created window ?

Post by Rmxv » Tue, 22 Feb 2005 09:35:02


Hi all,

i am trying to catch system message to be notified when any window would be
created or even closed. I've looked at the API messages sent, but it appears
that the messages (WM_CREATE or whatever) are sent to a particular handle.
Seems that IMessageFilter interface works the same.

If ever i am monitoring a specific handle by overriding its WndProc method,
i wont catch messages sent when another window will be created because they
are not sent to this handle.

Is there any way i could be trapping those events, to be able to know
whenever some windows are created, or closed ??

Any help would be really appreciated,

regards, Flo.
 
 
 

How to reveive WM_CREATE message for any created window ?

Post by Dan Mitche » Wed, 23 Feb 2005 02:21:17

=?Utf-8?B?Rmxv?= < XXXX@XXXXX.COM > wrote in


This is the wrong newsgroup for this sort of question, this newsgroup is
for email-type messaging. You should probably try
microsoft.public.win32.programmer.kernel.

That said, to monitor messages across all processes, you need to set a
windows hook -- see the docs for SetWindowsHookEx.

-- dan