msgs12.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MLN_PIXVERTOVERFLOW (1.2)
Notification Group  Overview                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
WM_CONTROL
id = (USHORT) SHORT1FROMMP(mp1);       /* MLE-window ID      */
usNotifyCode = MLN_PIXVERTOVERFLOW;
lOverFlow = LONGFROMMP(mp2);           /* amount of overflow */
 
The MLN_PIXVERTOVERFLOW notification message is sent whenever a user uses
the keyboard to insert more text than can fit in the current format
rectangle or text limit of a multiple-line entry field (MLE).
 
Parameter     Description
────────────────────────────────────────────────────────────────────────────
 
id            Low word of mp1. Identifies the MLE window.
 
usNotifyCode  High word of mp1. Set to MLN_PIXVERTOVERFLOW.
 
lOverFlow     Low and high word of mp2. The number of pels by which the
              operation overflowed the current format rectangle.
 
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.
 
Example
 
This example processes the MLN_PIXVERTOVERFLOW message by increasing the
size of the format rectangle:
 
MLEFORMATRECT mlefr;
 
case MLN_PIXVERTOVERFLOW:
    mlefr.cyFormat += 100;
    WinSendMsg(hwndMle, MLM_SETFORMATRECT, (MPARAM) &mlefr,
        (MPARAM) MLFFMTRECT_LIMITVERT);
    return TRUE;
 
See Also
 
MLN_PIXHORZOVERFLOW, WM_CONTROL