![]() |
RedrawCommandBars not working completely? |
Post Reply ![]() |
Author | |
justin ![]() Newbie ![]() Joined: 16 April 2009 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 25 May 2009 at 11:56am |
I call RedrawCommandBars() expecting it to redraw all the toolbars in my application, and it works great everywhere. Except, when I switch between the Office2000 and Office2007 theme. If I switch between these two themes and anything else it works fine (eg. Office2007 and Office2003 or XP and Office2000). The toolbars that are not getting drawn properly are created within different panes. Note that on different computers, different toolbars will not be redrawn correctly.
void CMainFrame::SetThemeHelper() { m_paneManager.SetAlphaDockingContext(TRUE); m_paneManager.SetShowDockingContextStickers(TRUE); GetCommandBars()->GetPaintManager()->GetIconsInfo()->bUseDisabledIcons = TRUE; GetCommandBars()->GetPaintManager()->GetIconsInfo()->bIconsWithShadow = TRUE; GetCommandBars()->GetPaintManager()->GetIconsInfo()->bUseFadedIcons = TRUE; GetCommandBars()->RedrawCommandBars(); } void CMainFrame::OnLookthemeOffice2000() { m_ApplicationTheme = xtpThemeOffice2000; XTPPaintManager()->SetTheme(xtpThemeOffice2000); m_paneManager.SetTheme(xtpPaneThemeOffice); SetThemeHelper(); } void CMainFrame::OnLookthemeOffice2007() { m_ApplicationTheme = xtpThemeOffice2007; XTPPaintManager()->SetTheme(xtpThemeOffice2007); m_paneManager.SetTheme(xtpPaneThemeOffice2007); SetThemeHelper(); } |
|
Product: Xtreme ToolkitPro version 12.0.2
Platform: Windows Vista Enterprise(64bit) - SP 1 Language: Visual C++ 2005 |
|
![]() |
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 |