title: Complete example of wxwidgets custom event passing string data
body: <p>I am receiving messages from the network on a non-GUI thread and need to use <a href="http://docs.wxwidgets.org/stable/wx_wxevthandler.html#wxevthandleraddpendingevent" rel="nofollow noreferrer">wxEvtHandler::AddPendingEvent</a> to tell the GUI to update accordingly. I also need to pass data to my GUI code so that it can act apropriately.</p>
  
  <p>I believe I have to create a custom event, but haven't found a straightforward implementation. This closest thing that I've found is The wxWiki on <a href="http://wiki.wxwindows.org/Custom_Events#Creating_a_Custom_Event_-_Method_4" rel="nofollow noreferrer">Creating a Custom Event</a>, which is a partial example.</p>