Print Page | Close Window

Threads & skins

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=5402
Printed Date: 30 May 2024 at 10:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Threads & skins
Posted By: kmacdona
Subject: Threads & skins
Date Posted: 01 November 2006 at 10:10pm
I have an unconventional application: a frame window creates UI threads and loads DLLs which create & manage other windows (mfc/codejock-based) The code running in these other UI threads attach their windows to child windows of the frame, so the frame ends up being the parent of these windows.  It's not easy but we have it working pretty well now.

Now I'm trying to use the skin framework.  I'd like my main frame to load a skin and have it apply to all other windows which are created - even if they are created in other threads.  Should this work?  Alternatively, should I be able to apply skins to these other windows (the DLLs are already creating CXTPFrameWnd-derived windows) by making calls from these other UI threads?

Thanks in advance,
Keith



Replies:
Posted By: Oleg
Date Posted: 02 November 2006 at 12:27am
Hi,
 
call XTPSkinManager()->EnableCurrentThread() inside thread you need to skin.


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


Posted By: kmacdona
Date Posted: 02 November 2006 at 10:15am
Excellent - thanks,
Keith



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