View Style Changes when switching the compiler option _UNICODE to _MBCS [modified]
-
Hi, i have a very old project without unicode support that i wanted to modernize a bit. Especially the user interface should get the new windows xp or vista control-style. But it doesn't works completly . The Dialog Controls don't wanted to switch to the new style. I tried everything i've found in the net but nothing works. Then i created a new project (mfc-application, dialog based) where i just open a about box to start some tests. The first result was: The Button and the Icon are drawn in XP Style Then i compared every option in the project settings and all include-files and #defines in the stdafx.h to my own project and changed one by one to find out whats wrong. When i changed the character set from Unicode to Multi Byte i got this dialog box: The Button and the Icon are drawn in Old Style I really don't understand why this switch leads to this old window styles. But the bigger problem is: my own application is written completly for Multi Byte Character Set. And its a VERY Big Application. It will take days to convert it to Unicode and since there are things like text parsers included it will not be easy to be sure that everything runs fine after the conversion. It would be nice if there is a way to get around this problem without switching to unicode. Does someone know this problem and how to go around? Thanks in advance. Best Regards, Florian -- modified at 5:28 Friday 27th July, 2007
-
Hi, i have a very old project without unicode support that i wanted to modernize a bit. Especially the user interface should get the new windows xp or vista control-style. But it doesn't works completly . The Dialog Controls don't wanted to switch to the new style. I tried everything i've found in the net but nothing works. Then i created a new project (mfc-application, dialog based) where i just open a about box to start some tests. The first result was: The Button and the Icon are drawn in XP Style Then i compared every option in the project settings and all include-files and #defines in the stdafx.h to my own project and changed one by one to find out whats wrong. When i changed the character set from Unicode to Multi Byte i got this dialog box: The Button and the Icon are drawn in Old Style I really don't understand why this switch leads to this old window styles. But the bigger problem is: my own application is written completly for Multi Byte Character Set. And its a VERY Big Application. It will take days to convert it to Unicode and since there are things like text parsers included it will not be easy to be sure that everything runs fine after the conversion. It would be nice if there is a way to get around this problem without switching to unicode. Does someone know this problem and how to go around? Thanks in advance. Best Regards, Florian -- modified at 5:28 Friday 27th July, 2007
Should have used the generic text routine mappings from the start ;) Is it just a manifest problem? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: