![]() |
SetTheme Vs. SetCustomTheme |
Post Reply
|
| Author | |
LarryWaugh
Newbie
Joined: 25 May 2004 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: SetTheme Vs. SetCustomThemePosted: 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);
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
LarryWaugh
Newbie
Joined: 25 May 2004 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 December 2004 at 7:49am |
|
Right on the dot!
Thank you for the quick reply
|
|
![]() |
|
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 |