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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
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 Tue, 5 Jun 2012 10:25:19 -0700 (PDT)
Organization http://groups.google.com
Lines 32
Message-ID <ce4e50e7-e33d-45aa-9eb9-3a8c6cbb2fe9@googlegroups.com> (permalink)
NNTP-Posting-Host 216.3.110.34
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1338917214 19028 127.0.0.1 (5 Jun 2012 17:26:54 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Tue, 5 Jun 2012 17:26:54 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=216.3.110.34; posting-account=qhbCewoAAADSPoN_HZXU3hFAF-nlhpKW
User-Agent G2/1.0
X-Received-Bytes 2243
Xref csiph.com comp.os.ms-windows.programmer.tools.mfc:8

Show key headers only | 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