Print Page | Close Window

Touble in EnableOffice2007Frame

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=13361
Printed Date: 09 May 2024 at 12:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Touble in EnableOffice2007Frame
Posted By: zaozao
Subject: Touble in EnableOffice2007Frame
Date Posted: 09 February 2009 at 2:17am
Hi.
 
At first, I apologizes
I am not good at English.
I think that it contains a lot of wrong sentences.
---------------------------------------------------------------------
I made a "CXTPDialogEX" class derived from "CXTPDialog".
 
In OnInitDialog() of  the class, I added the line
 EnableOffice2007Frame(this,XTPPaintManager());
There are dialogA and dialogB.
Both dialogs derived from "CXTPDialogEX".
And dialogB is the child dialog of dialogA.

When dialog A is displayed, it crashes with access violation.

(When I commented out "EnableOffice2007Frame(this,XTPPaintManager());", I can display dialogA and dialogB.)
---------------------------------------------------------------------
Please teach me the method of solving this problem.
 



Replies:
Posted By: Oleg
Date Posted: 09 February 2009 at 4:48am
Hi,
You need switch to xtpOffice2007 theme (for old releases)


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


Posted By: zaozao
Date Posted: 10 February 2009 at 3:49am
Thank you for your repry, oleg.
 
But, I have already added

 XTPPaintManager()->SetTheme(xtpThemeOffice2007);

in OnInitDialog.

CXTPDialogEx::OnInitDialog()
{
CXTPDialog::OnInitDialog();
XTPPaintManager()->SetTheme(xtpThemeOffice2007);
EnableOffice2007Frame(this, XTPPaintManager());
 
return TRUE;
}
 
Is it not enough?
Is it wrong?



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