To import text, an application sends the MLM_IMPORT message to the MLE field control. This message requires two parameters: plOffset and cbCopy. The plOffset parameter is a pointer to a variable that specifies the position in the MLE field where the text from the buffer is to be placed. The position is an offset from the beginning of the MLE text, that is, the number of characters from the beginning of the MLE text. If plOffset points to a variable that equals -1, the MLE field control places the text starting at the current cursor position. On return, this variable contains the offset to the first character beyond the imported text. The cbCopy parameter of the MLM_IMPORT message points to a variable that specifies the number of bytes to import.

The following criterias apply when importing MLE text: