Edit Control-> show messages in all languages.
Posted on 2006-04-11
I need to enable a single Edit control to show messages from all the languages english, chinese, german, hindi etc, in other terms I wish to make edit control unicode enabled.
1. I create a unicode text(.txt) file, and enter characters from German language like "ÖÄß" etc, and few characters from hindi language "सवबहठ".
2. I read this file using CStdio class, and try to print these characters in my edit control, however i find that string shown on the edit control is "ÖÄß?????".
I tried changing the font of the edit ctrl for the current font for which the character belongs.
But this will make the string look like ÖÄß????? and then make it ???सवबहठ.
So I guess CEdit is of no help.
I tried CRichEdit Control. But this doesnt support unicode atall.
Can any one help?
What am I missing ? what could be done to make it work correctly. Do I need to find a font which supports all the languages in the world and assign this font to my edit control ?
Thanks in advance!