Breaks occur either after delimiters or between characters of different classes. Word-break procedures for rich edit controls also group characters into character classes, each identified by a value in the range 0x00 through 0x0F. However, different rules apply to most Asian languages. Usually, in an edit control, a word break occurs only after delimiters. A delimiter is a character that marks the end of a word, such as a space.
Word-break procedures for rich edit controls are similar to those for edit controls, but they have additional capabilities: word-break procedures for both kinds of controls can determine whether a character is a delimiter and can find the nearest word break before or after the specified position. Instructions Use Word and Line Break Information An application can send messages to a rich edit control to replace the default word-break procedure, to retrieve word-break information, and to determine what line a given character falls on. The control uses this information when performing word-wrap operations and when processing CTRL+LEFT ARROW key and CTRL+RIGHT ARROW key combinations. A rich edit control calls a function called a word-break procedure to find breaks between words and to determine where it can break lines.