CRichEdit.SetTypographyOptionsmethod
Sets the text mode or undo level of a rich edit control.
Syntax
FUNCTION SetTypographyOptions (BYVAL hRichEdit AS HWND, BYVAL pto AS LONG, BYVAL fMask AS LONG) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
pto | Specifies one or both of the following values. TO_ADVANCEDTYPOGRAPHY. Advanced line breaking and line formatting is turned on. TO_SIMPLELINEBREAK. Faster line breaking for simple text (requires TO_ADVANCEDTYPOGRAPHY). | |
fMask | A mask consisting of one or more of the flags in pto. 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 pto is valid, otherwise FALSE.
Description
Sets the current state of the typography options of a rich edit control.
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.
Reference
- Defined in AfxNova/CRichEdit.inc:1255
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class