Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to change the dialog titlebar with xtreme?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change the dialog titlebar with xtreme?

 Post Reply Post Reply
Author
Message
question View Drop Down
Newbie
Newbie


Joined: 18 October 2008
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote question Quote  Post ReplyReply Direct Link To This Post Topic: How to change the dialog titlebar with xtreme?
    Posted: 09 January 2009 at 12:14am
Hello:

There are two problems can not be solved and I really need you help,I use xtreme tookit pro 12.0.0

1.How can i change the titlebar of a Dialog based Application without using skinframework?

HINSTANCE hResDLL = LoadLibrary("Office2007Blue.dll");
XTPOffice2007Images()->SetHandle(hResDLL, _T("OFFICE2007BLUE.INI"));

I load resource dll,and i can change the button and taskpanel theme to office2007 based styles,but i can not change the dialog titlebar,How can i made it?I don't want to use skinfreamwork to do this job,because a "msstyles" file have a big file size,thank you




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 January 2009 at 1:41am
Hi,
 
1. Dervive your class from CXTPOffice2007FrameHook:
 
class CPropertyGridDlg : public CDialog, CXTPOffice2007FrameHook
 
2. add lines in OnInitDialog:
 
  XTPPaintManager()->SetTheme(xtpThemeOffice2007);
  EnableOffice2007Frame(this, XTPPaintManager());
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
question View Drop Down
Newbie
Newbie


Joined: 18 October 2008
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote question Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2009 at 3:49am
Very appreciate your help Oleg, but I have one more problem to trouble you again.

I found class:"CXTPReportHyperlink" is so simple that i can not overload this class to change the link color and font size.etc, there is only three data members in the class,Could you pls tell me some idea about it?thank you.
Back to Top
question View Drop Down
Newbie
Newbie


Joined: 18 October 2008
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote question Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2009 at 12:00pm
Is there anyone can help me?
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.047 seconds.