If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
. . . It try to send a wxThreadEvent from a second thread to the main thread, but the corresbonding event handler doesn't catching this event. If I use a wxCommandEvent instead and it works well. Here my code fragments:
Is this a copy-paste error? You need a define and declare for each event type.
However, with these macros you define a new event *type*. But the first parameter to the EVT_THREAD macros is an ID. Try wxID_ANY there (or the real id of the control that receives the event):