<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : RedrawCommandBars not working completely?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : RedrawCommandBars not working completely?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 16 Jun 2026 04:30:22 +0000</pubDate>
  <lastBuildDate>Mon, 25 May 2009 11:56:51 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=14378</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[RedrawCommandBars not working completely? : I call RedrawCommandBars() expecting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14378&amp;PID=49321&amp;title=redrawcommandbars-not-working-completely#49321</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5153">justin</a><br /><strong>Subject:</strong> 14378<br /><strong>Posted:</strong> 25 May 2009 at 11:56am<br /><br />I call RedrawCommandBars() expecting it to redraw all the toolbars in my application, and it works great everywhere.&nbsp; Except, when I switch between the Office2000 and Office2007 theme.&nbsp; If I switch between these two themes and anything else it works fine (eg. Office2007 and Office2003 or XP and Office2000).&nbsp; The toolbars that are not getting drawn properly are created within different panes.&nbsp; Note that on different computers, different toolbars will not be redrawn correctly.<br><br>void CMainFrame::SetThemeHelper()<br>{<br>&nbsp;&nbsp;&nbsp; m_paneManager.SetAlphaDockingContext(TRUE);<br>&nbsp;&nbsp;&nbsp; m_paneManager.SetShowDockingContextStickers(TRUE);<br>&nbsp;&nbsp;&nbsp; GetCommandBars()-&gt;GetPaintManager()-&gt;GetIconsInfo()-&gt;bUseDisabledIcons = TRUE;<br>&nbsp;&nbsp;&nbsp; GetCommandBars()-&gt;GetPaintManager()-&gt;GetIconsInfo()-&gt;bIconsWithShadow = TRUE;<br>&nbsp;&nbsp;&nbsp; GetCommandBars()-&gt;GetPaintManager()-&gt;GetIconsInfo()-&gt;bUseFadedIcons = TRUE;<br>&nbsp;&nbsp;&nbsp; GetCommandBars()-&gt;RedrawCommandBars();<br>}<br><br>void CMainFrame::OnLookthemeOffice2000()<br>{<br>&nbsp;&nbsp;&nbsp; m_ApplicationTheme = xtpThemeOffice2000;<br>&nbsp;&nbsp;&nbsp; XTPPaintManager()-&gt;SetTheme(xtpThemeOffice2000);<br>&nbsp;&nbsp;&nbsp; m_paneManager.SetTheme(xtpPaneThemeOffice);<br>&nbsp;&nbsp;&nbsp; SetThemeHelper();<br>}<br><br>void CMainFrame::OnLookthemeOffice2007()<br>{<br>&nbsp;&nbsp;&nbsp; m_ApplicationTheme = xtpThemeOffice2007;<br>&nbsp;&nbsp;&nbsp; XTPPaintManager()-&gt;SetTheme(xtpThemeOffice2007);<br>&nbsp;&nbsp;&nbsp; m_paneManager.SetTheme(xtpPaneThemeOffice2007);<br>&nbsp;&nbsp;&nbsp; SetThemeHelper();<br>}<br>]]>
   </description>
   <pubDate>Mon, 25 May 2009 11:56:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14378&amp;PID=49321&amp;title=redrawcommandbars-not-working-completely#49321</guid>
  </item> 
 </channel>
</rss>