CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Singapore
    Posts
    33

    Display chinese characters in the menu??

    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


  2. #2
    Join Date
    May 2005
    Posts
    1

    Re: Display chinese characters in the menu??

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured