Print Page | Close Window

SetTheme Vs. SetCustomTheme

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1484
Printed Date: 07 November 2025 at 1:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetTheme Vs. SetCustomTheme
Posted By: LarryWaugh
Subject: SetTheme Vs. SetCustomTheme
Date 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);




Replies:
Posted By: Oleg
Date 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


Posted By: LarryWaugh
Date Posted: 02 December 2004 at 7:49am
Right on the dot! Thank you for the quick reply



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net