Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - SetTheme Vs. SetCustomTheme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetTheme Vs. SetCustomTheme

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


Joined: 25 May 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote LarryWaugh Quote  Post ReplyReply Direct Link To This Post Topic: SetTheme Vs. SetCustomTheme
    Posted: 01 December 2004 at 6:27pm

Does anybody know why the following two lines would give different results when used with a CXTPTabCliendWnd?

CXTPPaintManager::SetCustomTheme(new CXTPOffice2003Theme);

CXTPPaintManager::SetTheme(xtpThemeOffice2003);

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 02 December 2004 at 3:07am

I know :)

TabClient trying to determine CommandBars theme and set its own theme accordingly (if m_bAutoTheme enabled)

in first  line GetPaintManager()->GetCurrentTheme(); returns xtpThemeCustom,

in second line GetPaintManager()->GetCurrentTheme(); returns xtpThemeOffice2003,

you must set TabClient's theme manaually:

m_mtiClient.GetPaintManager()->SetAppearance(xtpTabAppear ancePropertyPage2003);

m_mtiClient.GetPaintManager()->m_bOneNoteColors = TRUE;

m_mtiClient.GetPaintManager()->m_bHotTracking = TRUE;

 

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
LarryWaugh View Drop Down
Newbie
Newbie


Joined: 25 May 2004
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote LarryWaugh Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2004 at 7:49am
Right on the dot! Thank you for the quick reply
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.031 seconds.