Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EM_EXLIMITTEXT
Collapse the table of content
Expand the table of content

EM_EXLIMITTEXT message

Sets an upper limit to the amount of text the user can type or paste into a rich edit control.

Parameters

wParam

This parameter is not used; it must be zero.

lParam

Specifies the maximum amount of text that can be entered. If this parameter is zero, the default maximum is used, which is 64K characters. A COM object counts as a single character.

Return value

This message does not return a value.

Remarks

The text limit set by the EM_EXLIMITTEXT message does not limit the amount of text that you can stream into a rich edit control using the EM_STREAMIN message with lParam set to SF_TEXT. However, it does limit the amount of text that you can stream into a rich edit control using the EM_STREAMIN message with lParam set to SF_RTF.

Before EM_EXLIMITTEXT is called, the default limit to the amount of text a user can enter is 32,767 characters.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Richedit.h

See also

EM_STREAMIN

 

 

Community Additions

ADD
Show:
© 2015 Microsoft