EM_GETWORDBREAKPROC

EM_GETWORDBREAKPROC

wParam = 0; /* not used, must be zero */

lParam = 0L; /* not used, must be zero */

An application sends the EM_GETWORDBREAKPROC message to an edit control to retrieve the current wordwrap function.

Parameters

This message has no parameters.

Return Value

The return value specifies the procedure-instance address of the application-defined wordwrap function. The return value is NULL if no wordwrap function exists.

Comments

A wordwrap function scans a text buffer (which contains text to be sent to the display), looking for the first word that does not fit on the current display line. The wordwrap function places this word at the beginning of the next line on the display. A wordwrap function defines at what point Windows should break a line of text for multiline edit controls, usually at a space character that separates two words.

See Also

EM_FMTLINES, EM_SETWORDBREAKPROC, MakeProcInstance, WordBreakProc