MSDN Home >  MSDN Library >  User Interface Design and Development >  Windows Controls >  Individual Control Information >  Rich Edit Controls > 

EM_SETWORDWRAPMODE Message


The EM_SETWORDWRAPMODE message 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.

Syntax

To send this message, call the SendMessage function as follows.
lResult = SendMessage(     // returns LRESULT in lResult
   (HWND) hWndControl,     // handle to destination control
   (UINT) EM_SETWORDWRAPMODE,     // message ID
   (WPARAM) wParam,     // = (WPARAM) () wParam;
   (LPARAM) lParam     // = (LPARAM) () lParam;
);

Parameters

wParam
Specifies one or more of the following values.
WBF_WORDWRAP
Enables Asian-specific word wrap operations, such as kinsoku in Japanese.
WBF_WORDBREAK
Enables English word-breaking operations in Japanese and Chinese. Enables Hangeul word-breaking operation.
WBF_OVERFLOW
Recognizes overflow punctuation. (Not currently supported.)
WBF_LEVEL1
Sets the Level 1 punctuation table as the default.
WBF_LEVEL2
Sets the Level 2 punctuation table as the default.
WBF_CUSTOM
Sets the application-defined punctuation table.
lParam
This parameter is not used; it must be zero.

Return Value

This message returns the current word-wrapping and word-breaking options.


Remarks

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

Message Information

HeaderDeclared in Richedit.h
Minimum operating systems Windows 95 (Asian version), Windows NT 4.0 (Asian version)

See Also

Rich Edit Controls
 Contact Us   |  E-Mail this Page   |  MSDN Flash Newsletter
 c 2002 Microsoft Corporation. All rights reserved.   Terms of Use  Privacy Statement   Accessibility