I use a RichEdit control in my MFC program to display log messages. When I first create the control, I change the default font using SetFont() to something like "MS Sans Serif". I then change the text with SetWindowText() whenever I need to display text. All text is typical English.
Everything works fine until I try to write out some foreign characters, like Japanese. The font type changes, and all text afterwards continues to use this funky changed font.
Is there some way to stop my font from changing regardless of the text being set, or is there some way to capture a notification message that so I can set it back? I captured all WM_MESSAGEs being sent to the RichEdit control, but I don't see any messages that says the font is being changed.
My program is compiled for Unicode, btw.
Everything works fine until I try to write out some foreign characters, like Japanese. The font type changes, and all text afterwards continues to use this funky changed font.
Is there some way to stop my font from changing regardless of the text being set, or is there some way to capture a notification message that so I can set it back? I captured all WM_MESSAGEs being sent to the RichEdit control, but I don't see any messages that says the font is being changed.
My program is compiled for Unicode, btw.