Bug in CXTPOffice2007FrameHook |
Post Reply |
Author | |
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Posted: 06 May 2008 at 12:46pm |
In CXTPOffice2007FrameHook::GetPaintManager() you cast the paint manager of the parent frame to a CXTPOffice2007Theme. In case that the parent frame has a different theme DrawRibbonFrame() in CXTPOffice2007FrameHook::RedrawFrame() crashes!
You should use the DYNAMIC_DOWNCAST / CObject mechanism to check whether the paint manager is of kind CXTPOffice2007Theme. Or at least put a comment in the code why the crash occurs |
|
Codejock support
|
|
dennisV
Senior Member Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
|
This problem still appears to be there - I get NULL returned from GetPaintManager() in CXTPOffice2007FrameHook if I set a theme to something, for example VS2008.
Can someone please advise on the best way to fix it? Thanks, Dennis |
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
The you have to set the theme of the main frame to xtpThemeRibbon.
I'd expect Codejock to fix the code, a crash is not acceptable. |
|
Codejock support
|
|
dennisV
Senior Member Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
|
Basically this means that I cannot at the moment change the skin of an application with the main frame based on 2007FrameHook - it crashes Or I'm missing something...
|
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes, now if you use 2007FrameHook you need Office2007 or Ribbon theme for your application.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |