EM_SETWORDWRAPMODE

Sets the word-wrapping and word-breaking options for the rich edit control. This message is available only in Asian-language versions of the operating system.

EM_SETWORDWRAPMODE
wParam = (WPARAM) (UINT) fOptions;
lParam = (LPARAM) 0:
 

Parameters

fOptions
Options flag. Can be a combination of the following values:
Value Meaning
WBF_WORDWRAP Enables Asian-specific word-wrap operation, such as Kinsoku in Japanese.
WBF_WORDBREAK Enables English word-breaking operation in Japanese and Chinese.

Enables Hangeul word-breaking operation.

WBF_OVERFLOW Recognizes overflow punctuation. (Not currently supported.)
WBF_LEVEL1 Sets level 1 punctuation table as default.
WBF_LEVEL2 Sets level 2 punctuation table as default.
WBF_CUSTOM Sets application-defined punctuation table.

Return Values

Returns the current word-wrapping and word-breaking options.

Remarks

This message must not be sent by the application-defined word-breaking procedure.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.

See Also

Rich Edit Controls Overview, Rich Edit Messages