P
Peter
Hi,
we are using Visual Studio 6.0 with MFC6 on an XP computer. The app is not
Unicode. OS is a german one and an english one.
I found a problem that in a combobox the strings are not shown properly when
I switch over to cyrillic letters.
This is done by setting the regional settings parameter "language for non
Unicode dialogs" to russian and reboot.
In the list box part of the combobox the letters are shown correctly but in
the edit box part of the combobox the selected string is shown wrong.
The Bytes that shows up the cyrillic letters are decoded not by the 1251
codepage but , I do not know why, by the 1252 codepage. So the string itself
is correctly read out of the russian part of the stringtable or out of the
list box part of the combobox. But the Bytes are linked to the wrong
characters.
The locale of the combobox o.k.
The problem might be that I create a font for that combobox: "arial",
FW_BOLD, .... This font seem to be shown correctly.
So when I use that font, the decoding goes wrong in the edit box.
But when I do not use that font with the combobox, the decoding goes right
and the editbox shows up cyrillic letters.
But the one created font is used by the list box and the edit box, or isn't
it.
How can a font does the right thing in the list box part and the wrong thing
in the edit box part of a combobox?
My understanding is that when I create a font, the font has one characterset
and not two different.
What regestry key can mess up this control ?
Any help to understand what is going on ?
Thanks
Peter
we are using Visual Studio 6.0 with MFC6 on an XP computer. The app is not
Unicode. OS is a german one and an english one.
I found a problem that in a combobox the strings are not shown properly when
I switch over to cyrillic letters.
This is done by setting the regional settings parameter "language for non
Unicode dialogs" to russian and reboot.
In the list box part of the combobox the letters are shown correctly but in
the edit box part of the combobox the selected string is shown wrong.
The Bytes that shows up the cyrillic letters are decoded not by the 1251
codepage but , I do not know why, by the 1252 codepage. So the string itself
is correctly read out of the russian part of the stringtable or out of the
list box part of the combobox. But the Bytes are linked to the wrong
characters.
The locale of the combobox o.k.
The problem might be that I create a font for that combobox: "arial",
FW_BOLD, .... This font seem to be shown correctly.
So when I use that font, the decoding goes wrong in the edit box.
But when I do not use that font with the combobox, the decoding goes right
and the editbox shows up cyrillic letters.
But the one created font is used by the list box and the edit box, or isn't
it.
How can a font does the right thing in the list box part and the wrong thing
in the edit box part of a combobox?
My understanding is that when I create a font, the font has one characterset
and not two different.
What regestry key can mess up this control ?
Any help to understand what is going on ?
Thanks
Peter