Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.ms-windows.programmer.tools.mfc > #8

CreateWindowEx CBS_DROPDOWNLIST list items show up as pipe (|) characters instead of Russian

From mstinawu@gmail.com
Newsgroups comp.os.ms-windows.programmer.tools.mfc
Subject CreateWindowEx CBS_DROPDOWNLIST list items show up as pipe (|) characters instead of Russian
Date 2012-06-05 10:25 -0700
Organization http://groups.google.com
Message-ID <ce4e50e7-e33d-45aa-9eb9-3a8c6cbb2fe9@googlegroups.com> (permalink)

Show all headers | View raw


I created a drop down list with two Russian language strings using CSB_DROPDOWNLIST. The strange thing is that when the static text is displayed, you can see the Russian characters fine, but when you click to drop down the list, they all show up as pipe characters (i.e. ||||||| instead of прерванные). See example here: https://picasaweb.google.com/lh/photo/HLKDB1ZcK4_9YpgcZCuc2d5BgnHv85NhJtgGKZATaEE?feat=directlink. 

Note that if I set it to Chinese or Korean, etc., I don't have this problem. Those Asian characters show up without issue. 

Anyone else experience a similar problem before? 

Below are the only two calls I make to create/update this control on initialization: 

   const HWND hwndComboBox = ::CreateWindowEx( 
      0, 
      WC_COMBOBOX, 
      TEXT(""), 
      CBS_DROPDOWNLIST | CBS_SIMPLE | WS_CHILD | WS_VSCROLL, 
      uX, 
      uY, 
      uWidth, 
      uHeight, 
      m_hWnd, 
      reinterpret_cast<HMENU>(m_uNumberOfControls), 
      m_hUserControlsModule, 
      0); 

lResult = ::SendMessage(hwndComboBox, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(szItem));

Back to comp.os.ms-windows.programmer.tools.mfc | Previous | NextNext in thread | Find similar


Thread

CreateWindowEx CBS_DROPDOWNLIST list items show up as pipe (|) characters instead of Russian mstinawu@gmail.com - 2012-06-05 10:25 -0700
  Re: CreateWindowEx CBS_DROPDOWNLIST list items show up as pipe (|) characters instead of Russian David Lowndes <DavidL@example.invalid> - 2012-06-05 19:47 +0100
    Re: CreateWindowEx CBS_DROPDOWNLIST list items show up as pipe (|) characters instead of Russian Tina Wu <mstinawu@gmail.com> - 2012-06-05 13:48 -0700
      Re: CreateWindowEx CBS_DROPDOWNLIST list items show up as pipe (|) characters instead of Russian David Lowndes <DavidL@example.invalid> - 2012-06-05 23:34 +0100
        Re: CreateWindowEx CBS_DROPDOWNLIST list items show up as pipe (|) characters instead of Russian Tina Wu <mstinawu@gmail.com> - 2012-06-06 12:29 -0700
  Re: CreateWindowEx CBS_DROPDOWNLIST list items show up as pipe (|) characters instead of Russian Tina Wu <mstinawu@gmail.com> - 2012-06-08 10:53 -0700

csiph-web