Print Page | Close Window

how to load the skin from resource?

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=11624
Printed Date: 15 September 2025 at 6:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to load the skin from resource?
Posted By: evoX
Subject: how to load the skin from resource?
Date Posted: 28 July 2008 at 5:00pm

I want to make the SkinControls sample application to load the skin files from resource, how can I do this ?

I have included the skin resources in the .RC2 file, but I don't know how to load them and apply to controls?

 

Thanks ?!




Replies:
Posted By: Oleg
Date Posted: 29 July 2008 at 1:25am
Hi,
 
in your res2 file add
 
#include "SkinFramework\Styles\Vista\Vista.rc"
 
in sources
 
XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLUE.INI"));


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: barobax
Date Posted: 29 July 2008 at 2:55am
please help meeeeeeee
In Rc2
#include "Styles\Office2007Blue\Office2007Blue.rc"
#include "Styles\Office2007Aqua\Office2007Aqua.rc"
#include "Styles\Office2007Black\Office2007Black.rc"
#include "Styles\Office2007Silver\Office2007Silver.rc"
//#include "SkinFramework\Styles\Vista\Vista.rc"
#include "Styles\Skins.rc"

and use BOOL b1 = XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLUE.INI"));

pelase help me


Posted By: Oleg
Date Posted: 29 July 2008 at 3:21am
Uncomment #include "SkinFramework\Styles\Vista\Vista.rc"

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: barobax
Date Posted: 29 July 2008 at 3:57am
thanks for your response oleg

when i uncomment #include "SkinFramework\Styles\Vista\Vista.rc" compiler tell me the 5000 is defined u can not define it again
i search and found
STRINGTABLE DISCARDABLE
BEGIN
    5000                    "Windows Vista Style"
END
and 5000 "Office 2007 Style" in Blue.cjstyles or Skins.rc
please help me
Best Regards



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