Unicode Windows ME
-
Hi; I've been looking (texts, help, forums, the net) for something I assume is simple, but I can't find the "magic formula". I would like to display any old Unicode character in a CRichEditCtrl. The language I support (Pali) uses Unicode characters over a very wide range in Unicode. My MS Word 97 can display the characters (using Insert Character). I can use the Unicode characters in my code, but I can't get them to display properly in the edit control (I get the default symbol). My font is "Arial Unicode MS". Does anyone have a skeleton 1-2-3 for this? BTW: a useful Unicode tool Unibook 3.0 is a free download at http://www.unicode.org/unicode/onlinedat/resources.html Thanks and peace from Andy http://members.home.net/j-andrew-shaw/
-
Hi; I've been looking (texts, help, forums, the net) for something I assume is simple, but I can't find the "magic formula". I would like to display any old Unicode character in a CRichEditCtrl. The language I support (Pali) uses Unicode characters over a very wide range in Unicode. My MS Word 97 can display the characters (using Insert Character). I can use the Unicode characters in my code, but I can't get them to display properly in the edit control (I get the default symbol). My font is "Arial Unicode MS". Does anyone have a skeleton 1-2-3 for this? BTW: a useful Unicode tool Unibook 3.0 is a free download at http://www.unicode.org/unicode/onlinedat/resources.html Thanks and peace from Andy http://members.home.net/j-andrew-shaw/
Hello, the codegurus around the world.;) Try this. This works to show Japanese in CRichEditCtrl.
BOOL CMyDialog::OnInitDialog()
{
CHARFORMAT cf;CMyRichEditCtrl.GetDefaultCharFormat(cf); cf.dwMask = CFM\_CHARSET | CFM\_FACE |CFM\_BOLD | CFM\_SIZE; cf.dwEffects = CFE\_BOLD; cf.bCharSet = DEFAULT\_CHARSET; cf.yHeight =150; CMyRichEditCtrl.SetDefaultCharFormat(cf);
:cool: :confused: Have a nice day. -Masaaki Onishi-