Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. UNICODE and CListBox

UNICODE and CListBox

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mukkie
    wrote on last edited by
    #1

    Hi! I am writing UNICODE application. Everything works fine, apart from list boxes. When I add russian/japaneese string to the listbox I receive garbage in dialog. It works ok for english. It seems to me that CLIstBox does not handle properly UNICODE strings. I also tried: LCID mylcid = MAKELCID(MAKELANGID(LANG_RUSSIAN, SUBLANG_NEUTRAL), SORT_DEFAULT); m_theListBox.SetLocale(mylcid); _ASSERTE(m_theListBox.GetLocale() == mylcid); and I get assertion. Does anyone know, how to put russian/japaneese string into the list box? (I am using WindowsXP Pro) Thanks in advance

    M 1 Reply Last reply
    0
    • M Mukkie

      Hi! I am writing UNICODE application. Everything works fine, apart from list boxes. When I add russian/japaneese string to the listbox I receive garbage in dialog. It works ok for english. It seems to me that CLIstBox does not handle properly UNICODE strings. I also tried: LCID mylcid = MAKELCID(MAKELANGID(LANG_RUSSIAN, SUBLANG_NEUTRAL), SORT_DEFAULT); m_theListBox.SetLocale(mylcid); _ASSERTE(m_theListBox.GetLocale() == mylcid); and I get assertion. Does anyone know, how to put russian/japaneese string into the list box? (I am using WindowsXP Pro) Thanks in advance

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Make sure the control's font is set to something that supports the character sets you're using, such as Tahoma. If it's MS Sans Serif, the non-Latin characters will not show up right. --Mike-- Fetchez la vache! My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan and Jamie Salé.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups