s***@pks.de
2006-10-26 13:58:42 UTC
Hello all,
I have a rather simple to describe but difficult to solve problem.
Our customers want to use our ANSI MFC program to show different
languages.
For example Polish.
When I set the font for the different controls they behave different.
For example the CEdit shows the polish characters just right but the
CButton with checkbox style shows glyphs instead of the special
characters.
Every control that is owner draw and uses for example the DrawText()
function of the device context shows the characters right.
I've experimented with _UNICODE for the display part and everything I
could think of but cannot find a solution.
Where is the difference, or what can I do (beside making all controls
owner draw) to get all controls display the same text?
What is the difference between standard control drawing or
CDC:DrawText(..)?
It is no option to rewrite all the text manipulating functions to use
the UNICODE counterparts. Because the program is half C and half C++.
It would take several weeks to work over all the source code to rewrite
everything to UNICODE and not to speak of testing everything all over
again.
Any ideas?
Thanks,
whiteman
I have a rather simple to describe but difficult to solve problem.
Our customers want to use our ANSI MFC program to show different
languages.
For example Polish.
When I set the font for the different controls they behave different.
For example the CEdit shows the polish characters just right but the
CButton with checkbox style shows glyphs instead of the special
characters.
Every control that is owner draw and uses for example the DrawText()
function of the device context shows the characters right.
I've experimented with _UNICODE for the display part and everything I
could think of but cannot find a solution.
Where is the difference, or what can I do (beside making all controls
owner draw) to get all controls display the same text?
What is the difference between standard control drawing or
CDC:DrawText(..)?
It is no option to rewrite all the text manipulating functions to use
the UNICODE counterparts. Because the program is half C and half C++.
It would take several weeks to work over all the source code to rewrite
everything to UNICODE and not to speak of testing everything all over
again.
Any ideas?
Thanks,
whiteman