Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I' m trying to use a Japanese software in simplified Chinese system , the other control works all fine but the combobox and button doesn't display a multibyte-char string correctly. I try to send an WM_SETFONT to that control to change the font with "MS UI Gothic" and charset 0x80 but that only made change to the font but not the content.
There is no way to convert the code page from Shift-JIS to GBK because the item of the dropdown list is keyed and I don't know when and how to get or set the content.

So what can I do?

p.s.
The application doesn' t use Unicode.
The problem may be due to CB_ADDSTRING message,that it always take the null-terminated string as encoded with the system default code page.If the system code page is Shift-JIS that will be Ok, but I'm tired of changing the system code page.
Posted
Updated 6-Jan-11 19:36pm
v2
Comments
Sergey Alexandrovich Kryukov 6-Jan-11 21:55pm    
It is non-Unicode application? How come you're working with different charsets? They are nearly obsolete. With Unicode there is one charset of all, it covers all languages. It has nothing to do with fonts as well (except those not supporting Chinese and Japanese, but those are very rare). In my applications all controls work with all forms of Chinese and Japanese.

1 solution

Try this code:
cbo.ImeMode = ImeMode.Hiragana;
//Or
ImeMode = ImeMode.Hiragana;//For applying all application to Japanese Hiragana mode
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900