Print Page | Close Window

Office2013 RibbonResource sample

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=22137
Printed Date: 28 November 2024 at 8:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Office2013 RibbonResource sample
Posted By: Shinonome
Subject: Office2013 RibbonResource sample
Date 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.



Replies:
Posted By: yusufkrgz
Date 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.



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