Print Page | Close Window

RedrawCommandBars not working completely?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14378
Printed Date: 06 October 2024 at 1:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: RedrawCommandBars not working completely?
Posted By: justin
Subject: RedrawCommandBars not working completely?
Date 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



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