#include "wx/combobox.h"
#include "wx/dcclient.h"
#include "wx/settings.h"
+ #include "wx/textctrl.h"
#endif
#include "wx/dcbuffer.h"
tc->RemoveEventHandler(m_textEvtHandler);
delete m_textEvtHandler;
+#if wxUSE_VALIDATORS
wxValidator* pValidator = tc->GetValidator();
if ( pValidator )
{
delete pValidator;
}
else
+#endif
{
CreateTextCtrl( tcCreateStyle, wxDefaultValidator );
}