Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Office2013 RibbonResource sample
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Office2013 RibbonResource sample

 Post Reply Post Reply
Author
Message
Shinonome View Drop Down
Groupie
Groupie


Joined: 18 July 2008
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shinonome Quote  Post ReplyReply Direct Link To This Post Topic: Office2013 RibbonResource sample
    Posted: 20 December 2013 at 12:30am
Could you please provide a RibbonResource sample program of The Office2013 Thema ?
I could not be created successfully.
Back to Top
yusufkrgz View Drop Down
Newbie
Newbie


Joined: 27 March 2014
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote yusufkrgz Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2014 at 9:40am
void CMainFrame::InitStyles()
{
  VERIFY(XTPResourceImages()->SetHandle("Office2013.dll", "OFFICE2013WHITE.INI"));
  CXTPPaintManager::SetTheme(xtpThemeOffice2013);

  m_paneManager.SetTheme(xtpPaneThemeOffice2013);
  m_pWndRibbonBar->GetSystemButton()->SetStyle(xtpButtonCaption);

  CXTPCommandBarsFrameHook::m_bAllowDwm = false;
  m_pWndRibbonBar->EnableFrameTheme(true);

  auto const pCommandBars = GetCommandBars();
  ASSERT(pCommandBars);

  pCommandBars->GetPaintManager()->m_bAutoResizeIcons = true;
}

just set style like that after you build the ribbon. of course if the theme is static that could work.
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.141 seconds.