void wxTextCtrl::AdjustSpaceLimit()
{
+#ifndef __WIN16__
unsigned int len = ::GetWindowTextLength(GetHwnd()),
limit = ::SendMessage(GetHwnd(), EM_GETLIMITTEXT, 0, 0);
if ( len > limit )
{
limit = len + 0x8000; // 32Kb
+#if wxUSE_RICHEDIT
if ( m_isRich || limit > 0xffff )
+#else
+ if ( limit > 0xffff )
+#endif
::SendMessage(GetHwnd(), EM_LIMITTEXT, 0, limit);
else
::SendMessage(GetHwnd(), EM_LIMITTEXT, limit, 0);
}
+#endif
}
// For Rich Edit controls. Do we need it?