#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