How to receive window message from other process.
yy.eisoo
yy.eisoo at gmail.com
Thu Aug 3 03:03:53 PDT 2006
Hi,
I am writing an application with wx for Windows Platform. The
application will received a message sent from other process. The process
send the specified message with SendWindowTimeout() API.
The my wx application, I used the following code to receive the message.
DEFINE_EVENT_TYPE (idEVT_UPDATETIP);
typedef void (wxEvtHandler::*wxUpdateEventFunc)(UpdateEvent&);
#define abUpdateEventHandler(func) \
(wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxUpdateEventFunc,
&func)
#define EVT_UPDATE_TIP(func) \
wx__DECLARE_EVT0(idEVT_UPDATETIP, abUpdateEventHandler(func))
BEGIN_EVENT_TABLE(abAnyUpdaterFrame, wxFrame)
EVT_UPDATE_TIP(abAnyUpdaterFrame::OnUpdateTip)
END_EVENT_TABLE()
abAnyUpdateFrame::OnUpdateTip (...)
{
...
}
I set a breakpoint in the event handler function, but the application
cannot run here when the message is sent.
Thanks in advance
He Hongfu
More information about the wx-users
mailing list