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
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|