C/C++: wxWidgets Event Handler