MLN_OVERFLOW
Appearance
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.
Parameters
- id - input
- Low word of mp1. Identifies the MLE window.
- usNotifyCode - input
- High word of mp1. Set to MLN_OVERFLOW.
- pmleover - input
- Low and high word of mp2. Points to an MLEOVERFLOW struc ture. The MLEOVERFLOW structure has the following form:
typedef struct _MLEOVERFLOW { ULONG afErr1nd; LONG nBytesOver; LONG pixHorzOver; LONG pixVertOver; } MLEOVERFLOW;
Remarks
The application should return TRUE to retry the operation. 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.
Example Code
WM_CONTROL id = (USHORT) SHORTIFROMMP(mpl); 1* MLE-window ID *1 usNotifyCode = MLN_OVERFLOW; pmleover = (PMLEOVERFLOW) PVOIDFROMMP(mp2); 1* point to MLEOVERFLOW *1