Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. View Style Changes when switching the compiler option _UNICODE to _MBCS [modified]

View Style Changes when switching the compiler option _UNICODE to _MBCS [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++wpfdesignhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    F Falk
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • F F Falk

      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

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      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:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups