Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to skin MSDI sample
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to skin MSDI sample

 Post Reply Post Reply
Author
Message
gpsunjp View Drop Down
Newbie
Newbie


Joined: 07 April 2005
Location: Benin
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote gpsunjp Quote  Post ReplyReply Direct Link To This Post Topic: How to skin MSDI sample
    Posted: 21 February 2010 at 9:38am
Hi,

I want to skin MSDI sample. But when I add the following code to CMainframe::OnCreate(), the second thread application will crash.

Is there someone know how to solbe this problem?

Thanks,

G.P. Sun
Back to Top
gpsunjp View Drop Down
Newbie
Newbie


Joined: 07 April 2005
Location: Benin
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote gpsunjp Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2010 at 9:40am
The added code
=================================================
#ifdef _XTP_INCLUDE_SKINFRAMEWORK
     XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLACK.INI"));
#endif
==============================================
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 22 February 2010 at 3:17am
Hello,
 
Replace to
 
XTPSkinManager()->LoadSkin("Styles\\Vista.cjstyles", _T("NORMALBLACK.INI"));
and move from OnCreate to constructor.
 
and check you have this file in bin\Styles folder. (or just compile any sample from Skifnramework folder - they will copy them)
 
 
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gpsunjp View Drop Down
Newbie
Newbie


Joined: 07 April 2005
Location: Benin
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote gpsunjp Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2010 at 8:59am
Hello

Thank you for your quick reply.
I did as you taught. I still didn't resolve this problem. It is no problem for single threaded application. But for Multithreaded application, the second or third thread application started from the before thread application will crash.

I will appreciate if you could give me the skinned MSDI Sample.

G. P. Sun
Back to Top
juancarlos View Drop Down
Newbie
Newbie


Joined: 05 April 2010
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote juancarlos Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2010 at 3:13am
Same problem here. Do you have any progress solving it?
thank you.
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.046 seconds.