msgs12.hlp (Topic list)
MLN_OVERFLOW (1.2)
Notification Group  Overview                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
WM_CONTROL
id = (USHORT) SHORT1FROMMP(mp1);            /* MLE-window ID        */
usNotifyCode = MLN_OVERFLOW;
pmleover = (PMLEOVERFLOW) PVOIDFROMMP(mp2); /* point to MLEOVERFLOW */
 
The MLN_OVERFLOW notification message is sent when an operation in a
multiple-line entry field (MLE) would overflow a text limit or a format
rectangle.
 
Parameter     Description
────────────────────────────────────────────────────────────────────────────
 
id            Low word of mp1. Identifies the MLE window.
 
usNotifyCode  High word of mp1. Set to MLN_OVERFLOW.
 
pmleover      Low and high word of mp2. Points to an MLEOVERFLOW structure.
 
Return Value
 
The application should return TRUE to retry the operation.
 
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.
 
Overflow caused by user-inserted text results in a MLN_PIXHORZOVERFLOW or
MLN_VERTOVERFLOW notification message. Overflow caused by an application
sending a message to the MLE results in a MLN_OVERFLOW message.
 
See Also
 
MLN_PIXHORZOVERFLOW, MLN_PIXVERTOVERFLOW, WM_CONTROL, MLEOVERFLOW