An application sends an EM_GETWORDBREAKPROC message to an edit control to retrieve the address of the current word wrap function.
EM_GETWORDBREAKPROC
wParam = 0; // not used; must be zero
lParam = 0; // not used; must be zero
This message has no parameters.
The return value specifies the address of the application-defined word wrap function. The return value is NULL if no word wrap function exists.
A word wrap function scans a text buffer that contains text to be sent to the display, looking for the first word that does not fit on the current display line. The word wrap function places this word at the beginning of the next line on the display. A word wrap function defines the point at which the system should break a line of text for multiline edit controls, usually at a space character that separates two words.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Edit Controls Overview, Edit Control Messages, EditWordBreakProc, EM_FMTLINES, EM_SETWORDBREAKPROC