#include <wx/textctrl.h> #include <wx/event.h> class wxTextBox : public wxTextCtrl { private: void OnKeyEvent(wxKeyEvent &e); public: wxTextBox(wxWindow *parent, int id, wxString text = _T("")); DECLARE_EVENT_TABLE(); };