C++: wxWidgets Event Handler