Print Page | Close Window

ToolBars + Offic2007

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=4898
Printed Date: 11 November 2025 at 2:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ToolBars + Offic2007
Posted By: pascal
Subject: ToolBars + Offic2007
Date Posted: 28 August 2006 at 6:59am
Hello,

I use some toolbars nesting combobox controls like the font name and font type. The text of the combo is editable. Well, when I toggle between the theme Office 2003 (or 2000) to office 2007 with ribbon extensions, the combo is not correctly updated. Setting the focus to the combo lets the new style appearing.

my code looks like this:

...

XTPPaintTheme paintTheme = XTPPaintManager()->GetCurrentTheme();
GetCommandBars()->SetTheme(paintTheme);

GetCommandBars()->GetImageManager()->RefreshAll();
GetCommandBars()->RedrawCommandBars();
SendMessage(WM_NCPAINT);

RedrawWindow(0, 0, RDW_ALLCHILDREN|RDW_INVALIDATE);

...


What's wrong?

Thanks for reply, we are releasing in a couple of days




-------------
Pascal Verdier
Software Engineer Manager



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