wxPython and windows messages

Just a quick question:
Is it possible to capture windows messages (win32) sent to the hWnd associated to a wxPython window? I have a library that sends WM_USER messages to an hWnd and I was wondering if I can catch the directly in wxPython.

Riccardo

Riccardo wrote:

Just a quick question:
Is it possible to capture windows messages (win32) sent to the hWnd associated to a wxPython window? I have a library that sends WM_USER messages to an hWnd and I was wondering if I can catch the directly in wxPython.

This question has been coming up often lately. If someone works out the details for this please add a page to the wiki describing how to do it.

There is no way in wxPython to do it, but there is a wxWindow.GetHandle method that you can use with the win32all extensions to hook into the WndProc for the window to catch window messages.

ยทยทยท

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