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. UNICODE, MultiByte, and UI's

UNICODE, MultiByte, and UI's

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiodesignquestion
3 Posts 3 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.
  • M Offline
    M Offline
    masnu
    wrote on last edited by
    #1

    When I change my application from UNICODE to MultiByte support the look of my UI changes. Understandable, but is there a way to get the XP (VS 2005) look and feel while still supporting MultiByte character set? Thanks.

    M K 2 Replies Last reply
    0
    • M masnu

      When I change my application from UNICODE to MultiByte support the look of my UI changes. Understandable, but is there a way to get the XP (VS 2005) look and feel while still supporting MultiByte character set? Thanks.

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

      masnu wrote:

      is there a way to get the XP (VS 2005) look and feel while still supporting MultiByte character set?

      Try adding the following line to the bottom of your stdafx.h file...

      #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")

      ...and rebuild.

      masnu wrote:

      When I change my application from UNICODE to MultiByte support the look of my UI changes. Understandable

      How is that understandable?  Why would the character set used by the code have an effect on the UI? Internally, Windows APIs use all Unicode - has been that way for a long time. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      1 Reply Last reply
      0
      • M masnu

        When I change my application from UNICODE to MultiByte support the look of my UI changes. Understandable, but is there a way to get the XP (VS 2005) look and feel while still supporting MultiByte character set? Thanks.

        K Offline
        K Offline
        krmed
        wrote on last edited by
        #3

        Look at the bottom of your stdafx.h file... you'll find a group of #pragma statements surrounded by

        #ifdef _UNICODE
        ...
        ...
        ...
        #endif

        Remove the line with the #ifdef _UNICODE and the corresponding #endif. Hope that helps.

        Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

        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