How to make TRichEdit behave like WordPad on Windows 7 when changing font for certain non-text characters? How to make TRichEdit behave like WordPad on Windows 7 when changing font for certain non-text characters? windows windows

How to make TRichEdit behave like WordPad on Windows 7 when changing font for certain non-text characters?


One thing to check would be to see if the richedit controls used by WordPad and TRichEdit are the same. I would recommend you check with (Spy++) Spyxx.exe to make sure the control has the same class and the same styles. If they are the same, I would then also check to make sure the controls are receiving the same messages, again using Spy++. I'm guessing that the controls are NOT the same or that they are not configured the same.

If they're not the same control, then you should be able to use the same control as WordPad (assuming it is part of the standard Windows custom controls). And use Spy++ to set the style the same way that WordPad is. Also, you may need to send it the same messages as well.