UNICODE, MultiByte, and UI's
-
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.
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:
-
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.
Look at the bottom of your stdafx.h file... you'll find a group of #pragma statements surrounded by
#ifdef _UNICODE
...
...
...
#endifRemove 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