Catching MS Windows Messages

Hubbard, Gary wrote:

I am working with a third party API that posts various types of completion messages back using the standard Microsoft format. The user registers the callback handler with a call of the form

    SetCallbackFunction(HWND *window, LPARAM lParam)
and when the event occurs a message is sent to the specified window. The wParam value is the completion code, and the lParam is taken from the registration function.

Is there any way to setup an event handler under wxPython to get these windows? I looked through the source code to see how the built-in ones were processed, but failed to understand the logic in the few minutes I had available. I can apparently use GetHandle() to get the wxWidgets underlying window handle, but I don't see how to do the equivalent of a EVT_ function to cause my wxWindow to process the messages. I really don't care if the event comes in as a normal wxEvent handler, or directly as a (wParam,lParam) handler, or anything else for that matter.

http://wiki.wxpython.org/index.cgi/HookingTheWndProc

···

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