RichEdit_SetBidiOptionssub
Sets the current state of the bidirectional options in the rich edit control.
Syntax
SUB RichEdit_SetBidiOptions (BYVAL hRichEdit AS HWND, BYVAL pOptions AS BIDIOPTIONS PTR)
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
pOptions | Pointer to a BIDIOPTIONS structure that indicates how to set the state of the bidirectional options in the rich edit control. |
Description
Sets the current state of the bidirectional options in the rich edit control.
Remarks
The rich edit control must be in plain text mode or RichEdit_SetBidiOptions will not do anything.
In plain text controls, RichEdit_SetBidiOptions automatically determines the paragraph direction and/or alignment based on the context rules. These rules state that the direction and/or alignment is derived from the first strong character in the control. A strong character is one from which text direction can be determined (see Unicode Standard version 2.0). The paragraph direction and/or alignment is applied to the default format.
RichEdit_SetBidiOptions only switches the default paragraph format to RTL (right to left) if it finds an RTL character.
Reference
- Defined in AfxNova/AfxRichEdit.inc:761
- Documented in Windows/WIndows Controls/RichEdit/RichEdit Procedures.md
- Topic: RichEdit Procedures