Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how to load the skin from resource?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to load the skin from resource?

 Post Reply Post Reply
Author
Message
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post 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 ?!

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: 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
Back to Top
barobax View Drop Down
Senior Member
Senior Member


Joined: 07 May 2008
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote barobax Quote  Post ReplyReply Direct Link To This Post 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
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: 29 July 2008 at 3:21am
Uncomment #include "SkinFramework\Styles\Vista\Vista.rc"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
barobax View Drop Down
Senior Member
Senior Member


Joined: 07 May 2008
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote barobax Quote  Post ReplyReply Direct Link To This Post 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
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.066 seconds.