#include "wx/settings.h"
#include "wx/brush.h"
#include "wx/utils.h"
+ #include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/app.h"
#endif
#if wxUSE_CLIPBOARD
- #include "wx/app.h"
#include "wx/clipbrd.h"
#endif
#include <richedit.h>
#endif
-#if !USE_SHARED_LIBRARY
// ----------------------------------------------------------------------------
// event tables and other macros
EVT_UPDATE_UI(wxID_REDO, wxTextCtrl::OnUpdateRedo)
END_EVENT_TABLE()
-#endif // USE_SHARED_LIBRARY
// ============================================================================
// implementation
#ifndef __WIN16__
unsigned int len = ::GetWindowTextLength(GetHwnd()),
limit = ::SendMessage(GetHwnd(), EM_GETLIMITTEXT, 0, 0);
- if ( len > limit )
+ if ( len >= limit )
{
limit = len + 0x8000; // 32Kb