![]() |
how to load the skin from resource? |
Post Reply
|
| Author | |
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Topic: how to load the skin from resource?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 ?! |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
barobax
Senior Member
Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 July 2008 at 3:21am |
|
Uncomment #include "SkinFramework\Styles\Vista\Vista.rc"
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
barobax
Senior Member
Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |