![]() |
Touble in EnableOffice2007Frame |
Post Reply ![]() |
Author | |
zaozao ![]() Groupie ![]() Joined: 09 February 2009 Location: Japan Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You need switch to xtpOffice2007 theme (for old releases)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
zaozao ![]() Groupie ![]() Joined: 09 February 2009 Location: Japan Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() |
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?
|
|
![]() |
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 |