Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - changing character set affects themes?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

changing character set affects themes?

 Post Reply Post Reply
Author
Message
Enclaved Shadow View Drop Down
Groupie
Groupie
Avatar

Joined: 22 August 2006
Location: Canada
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Enclaved Shadow Quote  Post ReplyReply Direct Link To This Post Topic: changing character set affects themes?
    Posted: 28 August 2006 at 3:34pm
In the sample app I've provided changing the character set from Unicode to Mulitbyte or 'not set' causes themes to act differently.  In both cases the correct codejock .dll is being used for each character set.  Is this the way it is supposed to behave?
 
In this picture you can see what the dialog looks like when built using the Unicode Character set.
 
In this picture you can see what the dialog looks like when built with the Multi-Byte character set or when using 'Not set'.
 
 
I have the following code in the OnInitDialog() method:
XTThemeManager()->SetTheme(xtThemeOfficeXP);
m_oButton1.SetXButtonStyle(BS_XT_FLAT);

m_oButton2.SetXButtonStyle(BS_XT_SEMIFLAT);

m_oButton3.SetXButtonStyle(BS_XT_SEMIFLAT | BS_XT_WINXP_COMPAT);

 
Bellow is the project folders and files that I have rared up.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2006 at 3:47pm
Hello,
 
See stdafx.h file from archive. Visual Studio add
#ifdef _UNICODE
#endif
 
around manifest. just comment first #if and last #endif.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Enclaved Shadow View Drop Down
Groupie
Groupie
Avatar

Joined: 22 August 2006
Location: Canada
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Enclaved Shadow Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2006 at 4:24pm
Thank you very much, that fixed it.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.