[wxPython] Posting a WM_COMMAND message to wxPython Frame

Hi,

I am writing some code in a DLL. I need to notify my wxPython application of
an event, so I am trying to send a WM_COMMAND message to the
application.

I can not get the application to receive the event. It appears that the
messages are dropped by wxWindows before they get to my frame.

In the Python code I have an EVT_COMMAND() line and a handler.
In the DLL, I have a PostMessage() call.

I am using Windows 98, Python 2.2, WxPython 2.3.2.1.

Has anyone successfully sent such a message between a DLL and wxPython (or to
a wxWindows App - I can translate).

Thanks,

Kevin

I can not get the application to receive the event. It appears that the
messages are dropped by wxWindows before they get to my frame.

In the Python code I have an EVT_COMMAND() line and a handler.
In the DLL, I have a PostMessage() call.

Take a look in wxWindows/src/msw/window.cpp in wxWindowMSW::UnpackCommand
and wxWindowMSW::HandleCommand for info on how the WM_COMMAND message is
turned into an event. If the window you are sending the message to is a
wxFrame then you'll also want to look at wxFrame::HandleCommand in
wxWindows/src/msw/frame.cpp. If all else fails then ask about this on
wx-dev.

ยทยทยท

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