EM_SETTYPOGRAPHYOPTIONS message

Sets the current state of the typography options of a rich edit control.

Parameters

wParam

Specifies one or both of the following values.

Value Meaning
TO_ADVANCEDTYPOGRAPHY
Advanced line breaking and line formatting is turned on.
TO_SIMPLELINEBREAK
Faster line breaking for simple text (requires TO_ADVANCEDTYPOGRAPHY).

lParam

A mask consisting of one or more of the flags in wParam. Only the flags that are set in this mask will be set or cleared. This allows a single flag to be set or cleared without reading the current flag states.

Return value

Returns TRUE if wParam is valid, otherwise FALSE.

Remarks

Advanced line breaking is turned on automatically by the rich edit control when needed, such as for handling complex scripts like Arabic and Hebrew, and for mathematics. It s also needed for justified paragraphs, hyphenation, and other typographic features.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Redistributable
Rich Edit 3.0
Header
Richedit.h

See also

EM_GETTYPOGRAPHYOPTIONS