Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - RedrawCommandBars not working completely?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RedrawCommandBars not working completely?

 Post Reply Post Reply
Author
Message
justin View Drop Down
Newbie
Newbie


Joined: 16 April 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote justin Quote  Post ReplyReply Direct Link To This Post Topic: RedrawCommandBars not working completely?
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.