Print Page | Close Window

How to skin MSDI sample

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=16239
Printed Date: 21 June 2025 at 2:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to skin MSDI sample
Posted By: gpsunjp
Subject: How to skin MSDI sample
Date 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



Replies:
Posted By: gpsunjp
Date Posted: 21 February 2010 at 9:40am
The added code
=================================================
#ifdef _XTP_INCLUDE_SKINFRAMEWORK
     XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLACK.INI"));
#endif
==============================================


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


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


Posted By: juancarlos
Date Posted: 05 April 2010 at 3:13am
Same problem here. Do you have any progress solving it?
thank you.



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