EN_MAXTEXT
This notification message is sent when the current text insertion has exceeded the specified number of characters for the edit control. The text insertion has been truncated.
This message is also sent when an edit control does not have the ES_AUTOHSCROLL style and the number of characters to be inserted would exceed the width of the edit control.
This message is also sent when an edit control does not have the ES_AUTOVSCROLL style and the total number of lines resulting from a text insertion would exceed the height of the edit control.
The parent window of the edit control receives this notification message through the WM_COMMAND message.
EN_MAXTEXT idEditCtrl = (int) LOWORD (wParam);
hwndEditCtrl = (HWND) lParam;
Parameters
- idEditCtrl
Identifier of the edit control. - hwndEditCtrl
Handle to the edit control.
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 1.0 and later | Winuser.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
Control Styles, EM_LIMITTEXT, WM_COMMAND
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.