Click to See Complete Forum and Search --> : Display chinese characters in the menu??


Steve Chia
May 11th, 1999, 10:08 PM
Hi,

I'm trying to display Chinese characters in the menu of my application running on a English version of windows. I have a third party software which enables the viewing of Chinese characters and I have a Chinese resource DLL. I managed to display other parts of my window in Chinese except for the menu. All it shows me are underscores which is basically garbage.

When I changed my resource, I loaded the new menu and then called the DrawMenuBar method but it doesn't seem to work.

Am I doing something wrong or missing out anything??

Thanks!!

Steve

zzhang2000
May 23rd, 2005, 10:35 AM
Hi Steve,

I am not sure how you display Chinese in other parts of the windows.
If you are using the font data to display Chinese, I suppose you can do
it the same way for the menu. The idea is to write a class derived
from CMenu, and overide the DrawItem method to manually display
Chinese using the font data, and then use CWnd:SetMenu method
to replace the default menu with your menu. I have never tried this
before, but you can try.

-Zheng