Jump to content

MLN PIXVERTOVERFLOW: Difference between revisions

From EDM2
Created page with "The MLNYIXVERTOVERFLOW 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). ==Parameters== ;id :Low word of mpl. Identifies the MLE window. ;usNotifyCode : High word of mpl. Set to MLN_PIXVERTOVERFLOW. ;lOverFlow :Low and high word of mp2. The number of pels by which the operation overflowed the current format rectangle. ==Returns== An appl..."
 
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:MLN PIXVERTOVERFLOW}}
The MLNYIXVERTOVERFLOW 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).
The MLNYIXVERTOVERFLOW 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).


Line 18: Line 19:
example, changing the dimensions of the format rectangle) that will enable the
example, changing the dimensions of the format rectangle) that will enable the
text to fit.
text to fit.


==Example Code==
==Example Code==
Line 43: Line 42:
* [[MLN_PIXHORZOVERFLOW]]
* [[MLN_PIXHORZOVERFLOW]]
* [[WM_CONTROL]]
* [[WM_CONTROL]]
[[Category:Messages]]

Latest revision as of 03:35, 28 April 2025

The MLNYIXVERTOVERFLOW 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).

Parameters

id
Low word of mpl. Identifies the MLE window.
usNotifyCode
High word of mpl. Set to MLN_PIXVERTOVERFLOW.
lOverFlow
Low and high word of mp2. The number of pels by which the operation overflowed the current format rectangle.

Returns

An application should return TRUE to retry the operation. If the application returns FALSE, the user cannot insert additional text.

Remarks

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 Code

WM_CONTROL
id = (USHORT) SHORT1FROMMP(mp1);         /* MLE-window IO */
usNotifyCode = MLN_PIXVERTOVERFLOW;      /* amount of overflow */
10verFlow = LONGFROMMP(mp2);

This example processes the MLNYIXVERTOVERFLOW 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_L1M1TVERT);
     return TRUE;

See Also