Threads & skins |
Post Reply |
Author | |
kmacdona
Newbie Joined: 01 November 2006 Location: Canada Status: Offline Points: 4 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
call XTPSkinManager()->EnableCurrentThread() inside thread you need to skin.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
kmacdona
Newbie Joined: 01 November 2006 Location: Canada Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Excellent - thanks,
Keith |
|
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 |