Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - ribbon and skin initial startup notification
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ribbon and skin initial startup notification

 Post Reply Post Reply
Author
Message
artsd View Drop Down
Groupie
Groupie


Joined: 07 January 2007
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote artsd Quote  Post ReplyReply Direct Link To This Post Topic: ribbon and skin initial startup notification
    Posted: 09 January 2007 at 10:30pm
I have a fairly complicated startup procedure that is causing me some intermittent crashes due to threading issues. I have several threads being created at startup, each with a window.
 
If I try to enable skinning in my mainframe create logic, I sometimes get crashes I think due to creation of child threads/windows. If i disable either the threading or skinning, my problems go away. If I delay the skinning until well after the application and all its threads are fully running (ie, through a user button click) then skinning works fine.
 
QUESTION: Is there any way to know when the skinning has been fully applied? Any message sent to mainframe or anything I can poll?
 
Also have a similar question relating to the ribbon.
 
QUESTION: Is there a way to know when the ribbon is done being actually created (rendered) the first time?
 
I have a long startup process involving reading 100 files (for a module based application) and I would like to delay the loading of these files until the application looks nice with the ribbon. If I don't delay, I see the traditional GUI and then a few seconds later, see it revert to the ribbon.
 
If a put a PeekMessage/DispatchMessage loop right after my ribbon creation but before the file loads, it helps but is not perfect.
 
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: 10 January 2007 at 1:24am
Hello,
Ribbon Must be created after you add it, and frame enabled after you cal pRibbpn->EnableThemeFrame();
 
What version you have? In 10.4 we added support of multithreaded for SkinFramework.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
artsd View Drop Down
Groupie
Groupie


Joined: 07 January 2007
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote artsd Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2007 at 1:37am
I am using 10.4.
 
The ribbon painting is not my main concern. It is working ok.
 
But I do have a problem with the skins.
 
When is it safe to enable the skins?
 
What if other threads were being created (and those threaded created windows) while the main thread was still in the process of skinning?
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: 10 January 2007 at 9:46am
Hello,
I recommend enable it in constructor of CMainframe.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.031 seconds.