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.
MLM_DELETE(1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMLE
 
MLM_DELETE
mp1 = MPFROMLONG((LINE) lBegin);    /* beginning of deletion */
mp2 = MPFROMLONG((ULONG) cch);      /* characters to delete  */
 
An application sends an MLM_DELETE message to delete the specified number of
characters from a multiple-line entry field (MLE).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
lBegin     Low and high word of mp1. Specifies the offset (number of
           characters from the beginning of the text) of the first character
           to delete. If this parameter is set to -1, the current selection
           (if any) is deleted.
 
cch        Low and high word of mp2. Specifies the number of characters to
           delete. This parameter is ignored if the lBegin parameter is set
           to -1.
 
Return Value
 
The return value is a 32-bit value (LONG) that specifies the number of
characters deleted.
 
See Also
 
MLM_CUT