I am using CRichEditCtrl (RichEdit20A) to display rtf-text:
m_reText.SetWindowText(strRtfText);
The problem is that the control does not display a border around words in rtf-text like this:
{\rtf1
\box\brdrdot
Hello World
}
I also tried RichEdit5.0 in a way as it proposed here, but result is the same, border is not displayed. However, if I save the text in .rtf file and open it in MSWord or Libre/OpenOffice editor, the dotted border around text is displayed correctly:
Why does CRichEditControl hide the border in my case? Please help, I would appreciate any suggestions.

You can display tables and borders with rich edit. The following will show a box with solid borders:
If you run this in Microsoft Word it will show dotted lines like it's supposed to. RichEdit does not handle dotted borders like it's supposed to, or maybe it's expecting a different format. If you save the file from Word, it still doesn't show dotted lines.
If you don't need dotted lines then use these simpler examples to show boxes in RichEdit:
See also link
Note,
CRichEditCtrl::SetWindowTextwill simply call::SetWindowTextWinAPI, it will set the string as plain text.Use
CRichEdit::StreamInto set raw rtf string. In your case you are probably using your own class which overridesCRichEditCtrl::SetWindowTextand runs the necessary streaming.Try the following to get rtf string from Word's spell check RichEdit: