Print Page | Close Window

changing character set affects themes?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4907
Printed Date: 11 November 2025 at 5:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: changing character set affects themes?
Posted By: Enclaved Shadow
Subject: changing character set affects themes?
Date 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.
http://forum.codejock.com/uploads/20060828_152716_Test.rar - uploads/20060828_152716_Test.rar



Replies:
Posted By: Oleg
Date 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


Posted By: Enclaved Shadow
Date Posted: 28 August 2006 at 4:24pm
Thank you very much, that fixed it.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net