msgs12.hlp (Topic list)
MLN_TEXTOVERFLOW (1.2)
Notification Group  Overview                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
WM_CONTROL
id = (USHORT) SHORT1FROMMP(mp1);      /* MLE-window ID         */
usNotifyCode = MLN_TEXTOVERFLOW;
cchOver = (ULONG) LONGFROMMP(mp2);    /* characters over limit */
 
The MLN_TEXTOVERFLOW notification message is sent when an operation in a
multiple-line entry field (MLE) exceeds the current text limit.
 
Parameter     Description
────────────────────────────────────────────────────────────────────────────
 
id            Low word of mp1. Identifies the MLE window.
 
usNotifyCode  High word of mp1. Set to MLN_TEXTOVERFLOW.
 
cchOver       Low and high word of mp2. Specifies the number of characters
              by which the text limit would overflow if the present
              operation completes.
 
Return Value
 
An application should return TRUE to retry the operation. If the application
returns FALSE, the user cannot insert additional text.
 
Comments
 
Before returning TRUE, the application should perform some operation (for
example, changing the dimensions of the format rectangle) that will enable
the text to fit.
 
See Also
 
MLN_OVERFLOW, WM_CONTROL