Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Touble in EnableOffice2007Frame
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Touble in EnableOffice2007Frame

 Post Reply Post Reply
Author
Message Reverse Sort Order
zaozao View Drop Down
Groupie
Groupie


Joined: 09 February 2009
Location: Japan
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaozao Quote  Post ReplyReply Direct Link To This Post Topic: Touble in EnableOffice2007Frame
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 09 February 2009 at 4:48am
Hi,
You need switch to xtpOffice2007 theme (for old releases)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
zaozao View Drop Down
Groupie
Groupie


Joined: 09 February 2009
Location: Japan
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaozao Quote  Post ReplyReply Direct Link To This Post 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.
 
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.172 seconds.