Windows system messages

Is there a way to listen for Windows (the OS) messages sent to my wxPython app that aren't normally handled by wxPython? For example, I'm trying to listen for the the WM_CANCELJOURNAL event sent by Windows so I can handle it properly in my app.

I've tried creating a new event type with an ID equivalent to the value of WM_CANCELJOURNAL (0x004B) and had my app watch for that event, but that didn't seem to work.

Any help will be appreciated.

Thanks,
Pete

Peter Parente wrote:

Is there a way to listen for Windows (the OS) messages sent to my wxPython app that aren't normally handled by wxPython?

Not from wxPython, but I seem to recall reading about somebody doing it
using the win32api modules or something. IIRC, it can stuff a new
message handler into the WinProc chain such that your handler is called first and can then check for the messages you are interested in before the wxWindows handlers are called.

P.S. it would be nice to have a page in the wiki that shows how to do
this...

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!